Not able to read all the classes of an external jar file.
harryreid Apr 10, 2017 4:57 PMHi,
I have created a module with all the external jar files and added the module as a dependency in the ejb jar file. I get the below error during run time when I call a class from my ejb jar file.
2017-04-10 16:39:42,268 ECDS_Worker-8 WARN [org.jboss.modules ] Failed to define class com.crystaldecisions.thirdparty.com.ooc.OB.TenantCategoryPolicy_impl in Module "com.bo41.ebus:main" from local module loader @629f0666 (finder: local module finder @1bc6a36e
(roots: G:\DEV\wildfly-10.1.0.Final\modules,G:\DEV\wildfly-10.1.0.Final\modules\system\layers\base\.overlays\base-wildfly-picketlink-patch,
G:\DEV\wildfly-10.1.0.Final\modules\system\layers\base\.overlays\base-wildfly-dom4j-patch,G:\DEV\wildfly-10.1.0.Final\modules\system\layers\base))
java.lang.NoClassDefFoundError: Failed to link com/crystaldecisions/thirdparty/com/ooc/OB/TenantCategoryPolicy_impl (Module "com.bo41.ebus:main" from local module loader @629f0666
(finder: local module finder @1bc6a36e (roots: G:\DEV\wildfly-10.1.0.Final\modules,G:\DEV\wildfly-10.1.0.Final\modules\system\layers\base\.overlays\base-wildfly-picketlink-patch,
G:\DEV\wildfly-10.1.0.Final\modules\system\layers\base\.overlays\base-wildfly-dom4j-patch,G:\DEV\wildfly-10.1.0.Final\modules\system\layers\base))):
Failed to link com/crystaldecisions/thirdparty/com/ooc/OB/TenantCategoryPolicy (Module "com.bo41.ebus:main" from local module loader @629f0666 (finder: local module finder @1bc6a36e
(roots: G:\DEV\wildfly-10.1.0.Final\modules,G:\DEV\wildfly-10.1.0.Final\modules\system\layers\base\.overlays\base-wildfly-picketlink-patch,
G:\DEV\wildfly-10.1.0.Final\modules\system\layers\base\.overlays\base-wildfly-dom4j-patch,G:\DEV\wildfly-10.1.0.Final\modules\system\layers\base))): org/omg/CORBA/portable/IDLEntity
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:446)
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:274)
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:78)
at org.jboss.modules.Module.loadModuleClass(Module.java:606)
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)
at com.crystaldecisions.thirdparty.com.ooc.OBCORBA.ORB_impl.initializeDefaultPolicies(ORB_impl.java:369)
at com.crystaldecisions.thirdparty.com.ooc.OBCORBA.ORB_impl.initialize(ORB_impl.java:196)
at com.crystaldecisions.thirdparty.com.ooc.OBCORBA.ORB_impl.setParameters(ORB_impl.java:804)
at com.crystaldecisions.thirdparty.com.ooc.OBCORBA.ORB_impl.init(ORB_impl.java:1305)
at com.crystaldecisions.enterprise.ocaframework.idl.helper.ORBHelper.init(ORBHelper.java:57)
at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.<init>(ServiceMgr.java:383)
at com.crystaldecisions.enterprise.ocaframework.ServiceMgrFactory.getServiceMgr(ServiceMgrFactory.java:66)
at com.crystaldecisions.sdk.occa.security.internal.LogonService.ensureServiceStub(LogonService.java:651)
at com.crystaldecisions.sdk.occa.security.internal.LogonService.doUserLogon(LogonService.java:838)
at com.crystaldecisions.sdk.occa.security.internal.LogonService.doUserLogon(LogonService.java:815)
at com.crystaldecisions.sdk.occa.security.internal.LogonService.userLogon(LogonService.java:211)
at com.crystaldecisions.sdk.occa.security.internal.SecurityMgr.userLogon(SecurityMgr.java:177)
at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon_aroundBody0(SessionMgr.java:454)
at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon_aroundBody1$advice(SessionMgr.java:512)
at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon(SessionMgr.java:1)
TenantCategoryPolicy_impl class which is having a problem is located in ebus405.jar file and so as ORB_impl. I am not sure why is it able to find the other classes in that jar but not the failing class.
Any help is appreciated.