JasperListener? Upgrading from Tomcat 8 to Tomcat 9

蹲街弑〆低调 提交于 2020-06-27 08:46:06

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/51301296/jasperlistener-upgrading-from-tomcat-8-to-tomcat-9

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!