[opencms-dev] OpenCms 18 running on Tomcat 10

Ramon Gavira Sáenz ramon.gavira at sagasoluciones.com
Mon Dec 23 11:43:23 CET 2024


Hello,

I am trying to run opencms 18 on tomcat 10 using tomcat migration tool (https://github.com/apache/tomcat-jakartaee-migration)
[https://opengraph.githubassets.com/33b5af5fe7491974781fa800703666ab84feada44f9d384d7824cf77ffeb9ec6/apache/tomcat-jakartaee-migration]<https://github.com/apache/tomcat-jakartaee-migration>
Apache Tomcat migration tool for Jakarta EE - GitHub<https://github.com/apache/tomcat-jakartaee-migration>
The difference between Java EE 8 and Jakarta EE 9 is that all the Java EE 8 packages in the javax.* namespace have moved to the jakarta.* namespace. Some sub-packages have also been renamed. This migration tool performs all the necessary changes to migrate an application from Java EE 8 to Jakarta EE 9 by renaming each Java EE 8 package to its Jakarta EE 9 replacement.
github.com
but I can't get it to work, Any body has the experience? Any help will be appreciate.

I'm getting this error when deploying, any Idea?? I got this error:

23-Dec-2024 10:36:37.961 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/opt/tomcat/webapps/ocms18-cv.war]
23-Dec-2024 10:36:40.143 SEVERE [main] org.apache.catalina.startup.HostConfig.deployWAR Error deploying web application archive [/opt/tomcat/webapps/ocms18-cv.war]
        java.lang.IllegalStateException: Error starting child
                at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:602)
                at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:571)
                at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:654)
                at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:969)
                at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1911)
                at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
                at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
                at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
                at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:123)
                at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:771)
                at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:423)
                at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1629)
                at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:303)
                at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:109)
                at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:389)
                at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:336)
                at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:776)
                at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:772)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
                at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1203)
                at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1193)
                at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
                at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
                at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145)
                at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:749)
                at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:203)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
                at org.apache.catalina.core.StandardService.startInternal(StandardService.java:415)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
                at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:870)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
                at org.apache.catalina.startup.Catalina.start(Catalina.java:761)
                at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
                at java.base/java.lang.reflect.Method.invoke(Method.java:580)
                at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473)
        Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ocms18-cv]]
                at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:406)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:179)
                at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:599)
                ... 35 more
        Caused by: java.lang.TypeNotPresentException: Type jakarta.jws.WebService not present
                at java.base/sun.reflect.annotation.TypeNotPresentExceptionProxy.generateException(TypeNotPresentExceptionProxy.java:47)
                at java.base/sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:89)
                at jdk.proxy2/jdk.proxy2.$Proxy2.value(Unknown Source)
                at org.apache.catalina.startup.ContextConfig.processServletContainerInitializers(ContextConfig.java:1792)
                at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1268)
                at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:973)
                at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:290)
                at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:109)
                at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4342)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
                ... 36 more
        Caused by: java.lang.ClassNotFoundException: jakarta.jws.WebService
                at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1374)
                at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1183)
                at java.base/java.lang.Class.forName0(Native Method)
                at java.base/java.lang.Class.forName(Class.java:534)
                at java.base/java.lang.Class.forName(Class.java:513)
                at java.base/sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:114)
                at java.base/sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:125)
                at java.base/sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49)
                at java.base/sun.reflect.annotation.AnnotationParser.parseSig(AnnotationParser.java:442)
                at java.base/sun.reflect.annotation.AnnotationParser.parseClassValue(AnnotationParser.java:428)
                at java.base/sun.reflect.annotation.AnnotationParser.lambda$parseClassArray$0(AnnotationParser.java:718)
                at java.base/sun.reflect.annotation.AnnotationParser.parseArrayElements(AnnotationParser.java:746)
                at java.base/sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:717)
                at java.base/sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:530)
                at java.base/sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:353)
                at java.base/sun.reflect.annotation.AnnotationParser.parseAnnotation2(AnnotationParser.java:282)
                at java.base/sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:121)
                at java.base/sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:73)
                at java.base/java.lang.Class.createAnnotationData(Class.java:4246)
                at java.base/java.lang.Class.annotationData(Class.java:4235)
                at java.base/java.lang.Class.getAnnotation(Class.java:4118)
                at org.apache.catalina.startup.ContextConfig.processServletContainerInitializers(ContextConfig.java:1780)
                ... 42 more
23-Dec-2024 10:36:40.146 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/opt/tomcat/webapps/ocms18-cv.war] has finished in [2,185] ms









-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20241223/d314f02e/attachment.htm>


More information about the opencms-dev mailing list