-
Enhancement
-
Resolution: Done
-
Minor
-
None
-
None
-
None
When we try to run the ArjuntaJTS/standalone quickstart, more specifically, when we try to launch the CORBA name server in the jacorb mode, we get the following stacktrace:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/rmi/CORBA/Stub at java.base/java.lang.ClassLoader.defineClass1(Native Method) at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017) at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174) at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:800) at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:698) at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:621) at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) at org.jacorb.orb.ORB.getReference(Unknown Source) at org.jacorb.poa.POA.getReference(Unknown Source) at org.jacorb.poa.POA.create_reference_with_id(Unknown Source) at org.jacorb.naming.NameServer.main(Unknown Source) Caused by: java.lang.ClassNotFoundException: javax.rmi.CORBA.Stub at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) ... 13 more
The reason why this happens is that the CORBA module was removed from JDK, starting from 11 (with deprecation in 9). See JEP 320 for more information.