TOMCAT WAR DELOYMENT
Posted:
Fri Sep 22, 2023 6:42 pm
by dlclark6985
Working on first deployment of WAR file on TOMCAT. Deployment fails, with the following error:
java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
Daryl
Re: TOMCAT WAR DELOYMENT
Posted:
Fri Sep 22, 2023 6:50 pm
by sean
Hi Daryl,
Which version of Tomcat do you use?
This looks similar to another ticket related to Tomcat 10+
viewtopic.php?f=5&t=23195Hope this helps,
Sean
Re: TOMCAT WAR DELOYMENT
Posted:
Fri Sep 22, 2023 7:02 pm
by dlclark6985
I see the other thread now - great I will install the correct version ofTomcat
Re: TOMCAT WAR DELOYMENT
Posted:
Fri Sep 22, 2023 7:23 pm
by dlclark6985
Not sure where to get Java 8 for MAC OS M2
Re: TOMCAT WAR DELOYMENT
Posted:
Fri Sep 22, 2023 8:01 pm
by dlclark6985
Seems to run OK on the latest JDK 20.x - WAR Delayed...
Re: TOMCAT WAR DELOYMENT
Posted:
Fri Sep 22, 2023 8:18 pm
by hovw
download jdk from azul.
https://www.azul.com/downloads/#zuluJava 17LTS. download as zip
extact zip
Tomcac/bin/setenv.sh
JAVA_HOME=path to java home
Tomcal/conf/context.xml
<Context>
<Resources
cachingAllowed="true"
cacheMaxSize="100000"
/>
Re: TOMCAT WAR DELOYMENT
Posted:
Thu Sep 28, 2023 6:38 pm
by sbutler
You may be interested in our DevOps tools to simplify and automate this:
https://servoycomponents.com/devops