tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexandre Vermeerbergen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TOMEE-2526) TomEE 7.1.0 supporting OpenJDK 11
Date Sun, 02 Jun 2019 16:09:00 GMT

    [ https://issues.apache.org/jira/browse/TOMEE-2526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16854006#comment-16854006
] 

Alexandre Vermeerbergen commented on TOMEE-2526:
------------------------------------------------

Hello,

I have been running my applications with TomEE+ 7.0.6 & TomEE+ 7.1.1 snapshots for couple
of months with AdopOpenJDK11 on Linux & Windows without issues.

A few Java11 specific fixes JIRAs been delivered (the most important one was https://issues.apache.org/jira/browse/TOMEE-2200)
that fixed 7.0.5 & 7.1.0 incompatibilities we hit, so , for the scope of my applications,
both snapshot releases are working fine with Java11. My web apps make a large use of Servlet,
JSP, JAX-RS, JAX-WS, JMS (based on TomEE+ embedded ActiveMQ or external ActiveMQ brokers),
etc. APIs.

IHMO, documenting that upcoming TomEE+ 7.0.6, 7.1.1 and 8.0.0 releases are not compatible
with Java 11 can make TomEE unpopular for people and organizations willing to run their code
with current Java LTS version.

In the light of this remark, wouldn't it be better to document which TomEE features (per version
if applicable) are incompatible with Java 11, and make this documentation evolve as issues
are solved?

Note: of course this has nothing to do with Java EE / Jartaka EE TCK compliance - which assumes
Java 8: that's a completely different aspect of "compatibility".

Kind regards,
Alexandre

> TomEE 7.1.0 supporting OpenJDK 11
> ---------------------------------
>
>                 Key: TOMEE-2526
>                 URL: https://issues.apache.org/jira/browse/TOMEE-2526
>             Project: TomEE
>          Issue Type: Bug
>          Components: TomEE Core Server
>    Affects Versions: 7.1.0
>            Reporter: Dinesh Gaddam
>            Priority: Major
>
> *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*
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message