tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Gallimore (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TOMEE-2526) TomEE 7.1.0 supporting OpenJDK 11
Date Mon, 03 Jun 2019 10:53:00 GMT

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

Jonathan Gallimore commented on TOMEE-2526:
-------------------------------------------

As a general guide:

TomEE 8.x is targeting EE8, and will require a min of Java SE 8

TomEE 7.0.x targets EE7, and requires at least Java SE 7.

TomEE 7.1.x is basically the same as TomEE 7.0.x, but it includes MicroProfile which requires
Java 8.

 

There's no issue with including fixes to support Java 11 into TomEE 7.0.x and 7.1.x, but I
think we'd be looking to stick to the points above - i.e. TomEE 7.0.x should work on Java
7, and 7.1.x should be more-or-less the same as TomEE 7.0.x. Both of these branches are currently
on OpenWebBeans 1.7.6. Having TomEE 7.1.x on OWB 2.x and 7.0.x on 1.7.6 might be diverging
a little bit.

 

[~dineshkumarg] I'm looking to kick off a TomEE 7.1.1 and 7.0.6 release, and these branches
should be pretty much good to go. Is there a specific issue (or set of issues) I can look
at for you before I do?

In terms of the OS/JDK/TomEE compatibility, I think [~avermeerbergen]'s suggestion is a good
one - clearly there is functionality that works ok in JDK 11 on these branches, and some cases
that don't. Documenting what does and doesn't work could be useful.

> 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