【发布时间】:2018-06-11 14:46:29
【问题描述】:
我在 tomcat 中尝试了一些东西,突然我的所有 JSP 和 Servlet 的状态码为 404。我收到此错误:
11-Jun-2018 17:40:57.528 SEVERE [main] org.apache.catalina.core.StandardContext.listenerStart Error configuring application listener of class [com.example.model.MySessionListener]
java.lang.ClassNotFoundException: com.example.model.MySessionListener
at .....
11-Jun-2018 17:40:57.528 SEVERE [main] org.apache.catalina.core.StandardContext.listenerStart Skipped installing application listeners due to previous error(s)
我有一个 HttpSessionListener,但发生此错误后我已删除,但错误仍然存在(重新启动并删除日志文件后)。如果我删除它,为什么 tomcat 仍然要求 HttpServletListener?我怎么能解决这个问题?
【问题讨论】:
-
web.xml中可能提到过。
-
不,这很奇怪。我尽可能地删除了它,classses、srcs 和 web.xml。
标签: tomcat