couldn’t clear tomcat cache
struts2 项目中报错
在网上查到的方案是:升级Struts2的版本
我把Struts的版本由2.3.4.1 升级到了2.5.1
但是启动tomcat时报错:
ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath.
升级Struts的版本之后,log4j的版本变为了2.5
解决方法:
pom.xml文件添加
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.6</version>
</dependency>
本文介绍了一个Struts2项目在升级版本后遇到的Tomcat缓存清理问题及log4j日志框架配置错误导致的问题。通过升级Struts2版本至2.5.1并调整log4j配置,解决了启动时的日志记录问题。
1075

被折叠的 条评论
为什么被折叠?



