3 Replies Latest reply on Mar 12, 2018 12:22 PM by David Lloyd

    java.lang.NoClassDefFoundError: Failed to link org/jacorb/orb/Reference

    Manjusha Gole Newbie

      We are migrating JBOSS from 4.0.3SP1 to Wildfly 10.1.0. Our java application is deployed in JBOSS and connects to a CORBA server process (developed in c) running on another host. Our JAVA application uses JACORB implementation. After migrating to Wildfly 10, we are getting following exception in server.log:

       

      2018-03-12 12:31:05,193 ERROR [stderr] (PEAdapterStart) Exception in thread "PEAdapterStart" java.lang.NoClassDefFoundError: Failed to link org/jacorb/orb/Reference (Module "com.xxx.yyy:main" from local module loader @379619aa (finder: local module finder @cac736f (roots: /opt/aaa/wildfly-10.1.0.Final/modules,/opt/aaa/wildfly-10.1.0.Final/modules/system/layers/base))): javax/rmi/CORBA/Stub

      2018-03-12 12:31:05,194 ERROR [stderr] (PEAdapterStart)         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

      2018-03-12 12:31:05,194 ERROR [stderr] (PEAdapterStart)         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

      2018-03-12 12:31:05,194 ERROR [stderr] (PEAdapterStart)         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

      2018-03-12 12:31:05,194 ERROR [stderr] (PEAdapterStart)         at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

      2018-03-12 12:31:05,194 ERROR [stderr] (PEAdapterStart)         at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:446)

      2018-03-12 12:31:05,194 ERROR [stderr] (PEAdapterStart)         at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:274)

      2018-03-12 12:31:05,194 ERROR [stderr] (PEAdapterStart)         at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:78)

      2018-03-12 12:31:05,194 ERROR [stderr] (PEAdapterStart)         at org.jboss.modules.Module.loadModuleClass(Module.java:606)

      2018-03-12 12:31:05,194 ERROR [stderr] (PEAdapterStart)         at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

      2018-03-12 12:31:05,194 ERROR [stderr] (PEAdapterStart)         at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)

      2018-03-12 12:31:05,194 ERROR [stderr] (PEAdapterStart)         at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)

      2018-03-12 12:31:05,195 ERROR [stderr] (PEAdapterStart)         at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)

      2018-03-12 12:31:05,195 ERROR [stderr] (PEAdapterStart)         at org.jacorb.orb.ORB._getObject(ORB.java:380)

      2018-03-12 12:31:05,195 ERROR [stderr] (PEAdapterStart)         at org.jacorb.orb.ORB.string_to_object(ORB.java:1831)

      2018-03-12 12:31:05,195 ERROR [stderr] (PEAdapterStart)         at com.xxx.yyy.eventmgt.pdsadapter.prct5.CorbaProxyImpl.initialize(

       

      We have included the jacorb.jar and all its dependencies in module "com.xxx.yyy:main". Any idea how to fix this error?