贾斯珀听众?从 Tomcat 8 升级到 Tomcat 9 [英] JasperListener? Upgrading from Tomcat 8 to Tomcat 9

查看:124
本文介绍了贾斯珀听众?从 Tomcat 8 升级到 Tomcat 9的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于 Tomcat 8.0 已经结束,我想将我的应用程序直接升级到 Tomcat 9.

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

当我将基于 Java 的应用程序从本地部署到我的服务器时,我有一个覆盖 server.xml 的脚本.我将服务器升级到了 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 不知道 JasperListener.我在 google 上搜索了这个问题,并从 apache 找到了Jasper How to"页面,但我不明白.现在是否安装了 Jasper,而无需在 server.xml 中插入 JasperListener?从 Tomcat 8 升级到 9 时,我还需要更新什么吗?

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?

推荐答案

org.apache.catalina.core.JasperListener 不再需要.因此,如果它存在于您的 server.xml 中 - 将其注释掉!

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

这篇关于贾斯珀听众?从 Tomcat 8 升级到 Tomcat 9的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆