Hi Florian,
I tried to deploy sample chemistry-opencmis-server-fileshare-1.1.0 built using
Java 8 on Ubuntu 18.04/Oracle JDK 11.0.1+13-LTS/Tomcat 8.0.53 and CentOS
7.6/OpenJDK 11.0.1+13/Tomcat 8.0.53. In both cases the web app failed to start
with the following error in catalina.*.log:
20-Dec-2018 11:07:05.667 SEVERE [localhost-startStop-1]
org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild:
start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/chemistry-opencmis-server-fileshare-1.1.0]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:755)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:731)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:973)
at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1850)
at
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
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.NoClassDefFoundError: javax/xml/ws/Endpoint
at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3167)
at java.base/java.lang.Class.getDeclaredMethods(Class.java:2310)
at
org.apache.catalina.util.Introspection.getDeclaredMethods(Introspection.java:127)
at
org.apache.catalina.startup.WebAnnotationSet.loadMethodsAnnotation(WebAnnotationSet.java:285)
at
org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:138)
at
org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:69)
at
org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:336)
at
org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:776)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:307)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5262)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
... 10 more
Caused by: java.lang.ClassNotFoundException: javax.xml.ws.Endpoint
at
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1352)
at
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1180)
... 24 more
20-Dec-2018 11:07:05.674 SEVERE [localhost-startStop-1]
org.apache.catalina.startup.HostConfig.deployWAR Error deploying web
application archive
/opt/apache-tomcat-8.0.53/webapps/chemistry-opencmis-server-fileshare-1.1.0.war
java.lang.IllegalStateException: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/chemistry-opencmis-server-fileshare-1.1.0]]
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:731)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:973)
at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1850)
at
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
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)
Is there anything to be done in order to run it under JDK 11?
Regards,
Vyacheslav Pascarel
-----Original Message-----
From: Florian Müller <[email protected]>
Sent: November 30, 2018 2:47 PM
To: [email protected]; Vyacheslav Pascarel <[email protected]>
Subject: Re: [EXTERNAL] - Re: OpenJDK 11 support
Yes, that applies to all JDKs.
- Florian
> Hi Florian,
>
> Thank you for the prompt reply. Does it apply to both Oracle JDK and OpenJDK?
>
> Regards,
>
> Vyacheslav Pascarel
>
> -----Original Message-----
> From: Florian Müller <[email protected]>
> Sent: November 30, 2018 4:36 AM
> To: [email protected]; Vyacheslav Pascarel
> <[email protected]>
> Subject: [EXTERNAL] - Re: OpenJDK 11 support
>
> Hi Vyacheslav,
>
> OpenCMIS 1.1 should work but does not compile with JDK 11.
> The code in trunk is prepared to also compile with JDK 11 but we have to wait
> until Apache CXF supports JDK 11. Currently the build breaks because a CXF
> tool we need for the build doesn't work, yet.
>
> - Florian
>
>
>> Hello,
>>
>> Can anybody tell if OpenJDK version 11 is supported by Chemistry 1.1? If
>> not, are there any plans to support it in the future?
>>
>> Attempt to build Chemistry produced error by maven-enforcer-plugin:
>>
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:enforce
>> (enforce-versions) on project chemistry-opencmis: Execution
>> enforce-versions of goal
>> org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:enforce failed:
>> An API incompatibility was encountered while executing
>> org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:enforce:
>> java.lang.ExceptionInInitializerError: null
>>
>> Switching maven-enforcer-plugin to version 3.0.0-M2 allowed to bypass the
>> error above but then build has failed due to javax.xml.ws.handler package
>> being missed:
>>
>> [ERROR]
>> /home/jsmith/dev/apache/chemistry-opencmis-1.1.0/chemistry-opencmis-c
>> o
>> mmons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemist
>> r y/opencmis/commons/spi/AuthenticationProvider.java:[27,28] package
>> javax.xml.ws.handler does not exist
>>
>> Regards,
>>
>> Vyacheslav Pascarel
>>
>>