在把一个老项目的jar升级完后发现启动失败,Tomcat localhost log 信息如下:配置应用的监听失败
30-Jul-2020 17:37:18.362 严重 [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.core.StandardContext.listenerStart Error configuring application listener of class [org.springframework.web.util.Log4jConfigListener]
java.lang.ClassNotFoundException: org.springframework.web.util.Log4jConfigListener
日志这块之前都好好的,现在却报错,查看源码确实找不到这个类,这是原web.xml
配置
<!-- 配置log4j配置文件路径 -->
<context-param>
<param-name>log4jConfigLocation</param-name>
<param-value>classpath:log4j.properties</param-value>
</context-param>
<!-- 60s 检测日志配置 文件变化 -->