线程“主”中的异常java.lang.NoClassDefFoundError:javax / ejb / EJBObject

时间:2019-09-11 20:33:21

标签: java ejb

我试图通过在一台应用程序服务器上运行的(Eclipse中的Java应用程序)从远程机器调用EJB方法。我在项目类路径中添加了客户端jar,并且成功编译了它。但是在运行时,它给了我下面的错误。我错过了项目中的任何jar或属性文件吗?

Exception in thread "main" java.lang.NoClassDefFoundError: javax/ejb/EJBObject
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at com.fedex.office.om.services.EasOrderServiceFactory$EasOrderCreator.createService(EasOrderServiceFactory.java:16)
    at com.fedex.office.om.services.EasOrderServiceFactory.createService(EasOrderServiceFactory.java:8)
    at com.fedex.office.om.services.ShadowTestingValidate.<init>(ShadowTestingValidate.java:60)
    at com.fedex.office.focal.InitiateAutomation.main(InitiateAutomation.java:83)
Caused by: java.lang.ClassNotFoundException: javax.ejb.EJBObject
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)

0 个答案:

没有答案