Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JasperListener? Upgrading from Tomcat 8 to Tomcat 9

Since Tomcat 8.0 has reached end of life, I want to upgrade my application directly to Tomcat 9.

When I deploy my Java based App from local to my server, I have a script which overrides the server.xml. I upgraded the server to a tomcat 9 and tried to put my application in there, but I get an error when trying to start it.

org.apache.tomcat.util.digester.Digester.startElement Begin event threw exception
java.lang.ClassNotFoundException: org.apache.catalina.core.JasperListener
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

Tomcat 9 does not know JasperListener. I googled this issue and found the "Jasper How to" page from apache, but I do not get it. Is Jasper now installed without me having to insert the JasperListener in the server.xml? And do I have to update anything else when upgrading from Tomcat 8 to 9?

like image 260
MoonLight Avatar asked Jul 12 '18 08:07

MoonLight


1 Answers

org.apache.catalina.core.JasperListener is no longer required. So if it exists in your server.xml - comment it out!

like image 159
Yuma Technical Inc. Avatar answered Oct 11 '22 15:10

Yuma Technical Inc.