How to run JBoss EAP 6.4 with Java 10
Hello!
Just got a brand new computer with Java 10 and was trying to start my old JBoss EAP 6.4.
But during start up I get:
Caused by: java.lang.NoClassDefFoundError: jdk/internal/reflect/ConstructorAccessorImpl
at java.base/jdk.internal.misc.Unsafe.defineClass0(Native Method) [java.base:]
at java.base/jdk.internal.misc.Unsafe.defineClass(Unsafe.java:1192) [java.base:]
at java.base/jdk.internal.reflect.ClassDefiner.defineClass(ClassDefiner.java:63) [java.base:]
at java.base/jdk.internal.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:400) [java.base:]
at java.base/jdk.internal.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:394) [java.base:]
at java.base/java.security.AccessController.doPrivileged(Native Method) [java.base:]
at java.base/jdk.internal.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:393) [java.base:]
at java.base/jdk.internal.reflect.MethodAccessorGenerator.generateConstructor(MethodAccessorGenerator.java:92) [java.base:]
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:55) [java.base:]
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [java.base:]
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488) [java.base:]
at __redirected.__XMLInputFactory.<init>(__XMLInputFactory.java:115) [jboss-modules.jar:1.3.6.Final-redhat-1]
... 17 more
Caused by: java.lang.ClassNotFoundException: jdk.internal.reflect.ConstructorAccessorImpl from [Module "org.codehaus.woodstox:main" from local module loader @4445629 (finder: local module finder @45b9a632 (roots: /home/fredrik/Applications/jboss-eap-6.4/modules,/home/fredrik/Applications/jboss-eap-6.4/modules/system/layers/base))]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.6.Final-redhat-1]
... 29 more
Is there any solution to this?
I guess this is because I used to run my EAP with Java 8 on my old computer and now using Java 10 on my new computer. What do you think guys?
PS I added my complete server.log if that might help
Best regards
Fredrik