Working on first deployment of WAR file on TOMCAT. Deployment fails, with the following error:
java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
Daryl
Working on first deployment of WAR file on TOMCAT. Deployment fails, with the following error:
java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
Daryl
Hi Daryl,
Which version of Tomcat do you use?
This looks similar to another ticket related to Tomcat 10+
viewtopic.php?f=5&t=23195
Hope this helps,
Sean
Tomcat 10
I see the other thread now - great I will install the correct version ofTomcat
Not sure where to get Java 8 for MAC OS M2
Seems to run OK on the latest JDK 20.x - WAR Delayed…
download jdk from azul. https://www.azul.com/downloads/#zulu
Java 17LTS. download as zip
extact zip
Tomcac/bin/setenv.sh
JAVA_HOME=path to java home
Tomcal/conf/context.xml
You may be interested in our DevOps tools to simplify and automate this: https://servoycomponents.com/devops