Closed SpyOO closed 2 years ago
I got the same error with JDK 17 and Tomcat 10, I also got this message
21-Dec-2021 10:11:42.894 SEVERE [main] org.apache.catalina.core.StandardContext.listenerStart Error configuring application listener of class [de.oc.integration.jasper.webapp.AppServletContextListener]
java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012)
I found that it is because the javax Package has been renamed to jakarta , so, we have to install Tomcat 9. https://stackoverflow.com/a/64418685
Yeah, this is kinda difficult.
When I upgrade the existing code, it will work with Tomcat 10 ... AND break on Tomcat 9.
I need to find an easy way to build both versions ... but there are many places in the code to change. There is this automatic migration tool: https://tomcat.apache.org/migration-10.html#Specification_APIs
Not sure, that I can use that to build both versions.
But perhaps using Tomcat9 will be fine for now?
I have decided to continue developing for Tomcat9.
In addition to that, I will use the migration tool to BUILD an additional war file for Tomcat10 only. This will be added to the binary downloads.
For that conversion I will use the official Tomcat migration tool: https://tomcat.apache.org/download-migration.cgi
I get a error when install into tomcat 10 the version 2.7 of JRI
after deploy jri I get the error in catalina.out file :
INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.0.8]
[main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/opt/tomcat10/webapps/jri.war]
WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match [Context] failed to set property [debug] to [0]
INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs.
SEVERE [main] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
SEVERE [main] org.apache.catalina.core.StandardContext.startInternal Context [/jri] startup failed due to previous errors