Problem with tomcat upgrading from Camunda 7.5 to 7.7

Hi, today I upgraded to the 7.7 version and I got this error when I try to start tomcat.

java.lang.ClassNotFoundException: org.apache.catalina.core.JasperListener

This happened after I copied the 7.7 libraries into $TOMCAT_HOME/lib. Initially I forgot about the libs and some functionalities were working (I tried some REST calls). After including the libs tomcat wont start:

SEVERE: Begin event threw exception
java.lang.ClassNotFoundException: org.apache.catalina.core.JasperListener
at java.net.URLClassLoader$1.run(URLClassLoader.java:359)
at java.net.URLClassLoader$1.run(URLClassLoader.java:348)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:347)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:116)
at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1178)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1451)
at org.apache.catalina.startup.Catalina.load(Catalina.java:551)
at org.apache.catalina.startup.Catalina.start(Catalina.java:613)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:321)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)

I am using tomcat7, and by the little I found in the internet, this error happened to people upgrading to tomcat8. Is it possible to run camunda-engine-rest for tomcat7 or do I have to upgrade to tomcat8? I anyone running the 7.7 version in tomcat7?

Thanks in advance.

Hi @gcalvo,

did you just replace server.xml or you copied important parts manually?

Cheers,
Askar

I didn’t touch server.xml. I have not upgraded to tomcat8.

@gcalvo,

I am sorry I though you were upgrading from tomcat 7.5 to 7.7 and use shared engine. So, you are telling so far you only copied libraries. Which jars did you copy exactly? You copied it from 7.5 into 7.7?

Cheers,
Askar

Yes, I downloaded the libs from here:

https://camunda.org/download/

And copied all of them. There are 2 in particular that probably are causing the problem:
jasper.jar
jasper-el.jar

This is the problematic line in server.xml

<!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
  <Listener className="org.apache.catalina.core.JasperListener" />

I guess (from my ignorance) that the files included in the camunda libs are compatible with tomcat8 and not tomcat7. Then I looked up “jasper.jar for tomcat7” and replaced the file again, but the problem persisted.

Hi @gcalvo,

well I can only recommend to try to copy only the jars which do not belong to tomcat manually and not all the lib folder content. Camunda does not modify web containers, so that should work for sure.

Cheers,
Askar