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

David Blevins commented on TOMEE-2526:
--------------------------------------

Hi Dinesh!

A document that describes what TomEE 7.1.0 supports isn't there and would be a 
fantastic contribution.  We just recently made it possible for the different 
TomEE branches to have their own documentation base.  There wasn't yet the 
right setup for TomEE 7.1.0 branch, however, so I went ahead and created that 
now.  A PR to add a new file to this directory would be great:  
[https://github.com/apache/tomee/tree/tomee-7.1.x/docs]

Basically TomEE 7.1.0 is Java EE 7, Java 8 and limited MicroProfile 1.2 (JWT, 
Config, HealthCheck).  Any OS that supports Java 8 works, however we only have 
CI jobs for linux.

 

On the topic of TomEE 7.1.0 and Java 11, some of us had thoughts early that 
this might be possible.  However it now seems incredibly unlikely for two 
reasons: 

 - The work required to do Java 11 turned out to be quite high and many 
projects are unwilling/hesitant to do the work outside of master.

 - The recent incompatible javax to jakarta namespace change is going to turn 
into a significantly larger challenge than Java 11.

 

Getting through the above challenges on several branches is unlikely given 
resources.  Particularly on the last one, getting through it once will be 
incredibly hard.  Details on that:

 

 - [https://eclipse-foundation.blog/2019/05/03/jakarta-ee-java-trademarks/]

 - [https://www.tomitribe.com/blog/jakarta-ee-a-new-hope/]

 - [https://github.com/eclipse-ee4j/jakartaee-platform/tree/master/namespace]

 

> 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)

Reply via email to