2

我正在将我的应用程序从 EJB2.0 迁移到 EJB3.0,并在将服务器从 WAS5.0 迁移到 WAS7.0 的同时,我完成了迁移 EJB 所需的所有更改,但是当我部署我的 EAR 时没有编译时错误进入服务器并点击应用程序它给了我一个错误 -

NMSV0605W: A javax.naming.Reference object looked up from the context "ejblocal:" with the name "ejb/com/freight/xyz/UserLocalHome" was sent to the JNDI Naming Manager and an exception resulted. Reference data follows:

Reference Factory Class Name: com.ibm.ejs.container.util.EJBLocalInterfaceObjectFactory
Reference Factory Class Location URLs: <null>
Reference Class Name: com.freight.xyz.UserLocalHome
Type: EJBLocalInterfaceInfo

Content: com.ibm.ejs.container.util.EJBLocalInterfaceInfo@5bb95bb9
Exception data follows:
com.ibm.ejs.container.ContainerEJBException: Unable to initialize deferred EJB.; nested exception is: java.lang.NoClassDefFoundError: com.freight.ecw.dto.User
    at com.ibm.ws.runtime.component.EJBContainerImpl.initializeDeferredEJB(EJBContainerImpl.java:4938)

除了在日志中,我还可以看到-

异常堆栈跟踪:com.ibm.websphere.naming.CannotInstantiateObjectException:在 JNDI NamingManager 处理 javax.naming.Reference 对象时发生异常。

有谁知道如何解决这个问题?

4

0 回答 0