TomEE 7.1.0 supporting OpenJDK 11

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

TomEE 7.1.0 supporting OpenJDK 11

dineshkumarg
This post was updated on .
Hi,

When I am trying to run TomEE 7.1.0 with OpenJDK 11 & my EAR deployed, I am
seeing below exception straightaway


com.test.install.api.InstallException: 05/24/2019 09:08:26:799, Error 0
(Unknown), Message 026-004-0109: A JAXB Exception occurred.
        at
com.test.install.api.InstallException.getOne(InstallException.java:134)
        at
com.test.install.api.InstallParameters.getUnmarshaller(InstallParameters.java:1122)
        at
com.test.install.api.InstallParameters.loadInstallParameters(InstallParameters.java:631)
        at
com.test.install.api.InstallParameters.loadInstallParameters(InstallParameters.java:522)
        at com.test.install.api.InstallOps.main(InstallOps.java:5363)
Nested exception is:
javax.xml.bind.JAXBException: Provider
com.sun.xml.internal.bind.v2.ContextFactory not found
 - with linked exception:
[java.lang.ClassNotFoundException:
com.sun.xml.internal.bind.v2.ContextFactory]
        at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:149)
        at javax.xml.bind.ContextFinder.find(ContextFinder.java:362)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:446)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:409)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:313)
        at
com.test.install.api.InstallParameters.getUnmarshaller(InstallParameters.java:1117)
        at
com.test.install.api.InstallParameters.loadInstallParameters(InstallParameters.java:631)
        at
com.test.install.api.InstallParameters.loadInstallParameters(InstallParameters.java:522)
        at com.test.install.api.InstallOps.main(InstallOps.java:5363)
Caused by: java.lang.ClassNotFoundException:
com.sun.xml.internal.bind.v2.ContextFactory
        at
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
        at
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
        at
javax.xml.bind.ContextFinder.safeLoadClass(ContextFinder.java:578)
        at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:146)
        ... 8 more

Nested exception is:
javax.xml.bind.JAXBException: Provider
com.sun.xml.internal.bind.v2.ContextFactory not found
 - with linked exception:
[java.lang.ClassNotFoundException:
com.sun.xml.internal.bind.v2.ContextFactory]
        at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:149)
        at javax.xml.bind.ContextFinder.find(ContextFinder.java:362)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:446)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:409)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:313)
        at
com.test.install.api.InstallParameters.getUnmarshaller(InstallParameters.java:1117)
        at
com.test.install.api.InstallParameters.loadInstallParameters(InstallParameters.java:631)
        at
com.test.install.api.InstallParameters.loadInstallParameters(InstallParameters.java:522)
        at com.test.install.api.InstallOps.main(InstallOps.java:5363)
Caused by: java.lang.ClassNotFoundException:
com.sun.xml.internal.bind.v2.ContextFactory
        at
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
        at
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
        at
javax.xml.bind.ContextFinder.safeLoadClass(ContextFinder.java:578)
        at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:146)

Few other issues are

24-May-2019 09:36:26.805 SEVERE [rh75test167-startStop-1]
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal Error merging
Java EE JNDI entries in to war /test: Exception: Cannot get
Unsafe.defineClass
 java.lang.IllegalStateException: Cannot get Unsafe.defineClass
        at
org.apache.webbeans.proxy.AbstractProxyFactory$4.run(AbstractProxyFactory.java:812)
        at
org.apache.webbeans.proxy.AbstractProxyFactory$4.run(AbstractProxyFactory.java:801)
        at java.base/java.security.AccessController.doPrivileged(Native
Method)
        at
org.apache.webbeans.proxy.AbstractProxyFactory.initializeUnsafe(AbstractProxyFactory.java:800)
        at
org.apache.webbeans.proxy.AbstractProxyFactory.<init>(AbstractProxyFactory.java:91)
        at
org.apache.webbeans.proxy.InterceptorDecoratorProxyFactory.<init>(InterceptorDecoratorProxyFactory.java:77)
        at
org.apache.webbeans.config.WebBeansContext.<init>(WebBeansContext.java:153)
        at
org.apache.webbeans.config.WebBeansContext.<init>(WebBeansContext.java:116)
        at
org.apache.openejb.cdi.WebappWebBeansContext.<init>(WebappWebBeansContext.java:33)
        at
org.apache.openejb.cdi.ThreadSingletonServiceImpl.initialize(ThreadSingletonServiceImpl.java:170)
        at org.apache.openejb.cdi.CdiBuilder.build(CdiBuilder.java:60)
        at
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1428)
        at
org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1125)
        at
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:133)
        at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)
        at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154)
        at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1421)
        at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1411)
        at
java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.NoSuchMethodException:
sun.misc.Unsafe.defineClass(java.lang.String, [B, int, int,
java.lang.ClassLoader, java.security.ProtectionDomain)
        at java.base/java.lang.Class.getDeclaredMethod(Class.java:2476)
        at
org.apache.webbeans.proxy.AbstractProxyFactory$4.run(AbstractProxyFactory.java:807)
        ... 22 more

Is there anyone seeing these kind of issues or anyone running
TomEE 7.1.0 on OpenJDK 11 with EARs deployed successfully. Please help me

Thanks