您的位置:首页 > 运维架构 > Tomcat

couldn't clear tomcat cache

2016-07-01 14:54 507 查看

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.0 log4j