Tomcat启动报错Dependency mapping for [type=java.lang.String, name='struts.devMode'] already exists.

来源:互联网 发布:淘宝收获地址怎么改 编辑:程序博客网 时间:2024/05/21 02:51

这里说明Tomcat启动报错的一个问题:

项目中融合了structs2框架之后tomcat启动就一直报错,怎么检查配置都没发现问题。

错误类容:

initialization completed in 26622 ms
ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
ERROR Dispatcher Dispatcher initialization failed
 com.opensymphony.xwork2.inject.DependencyException: Dependency mapping for [type=java.lang.String, name='struts.devMode'] already exists.

最后比较了同事的配置差别之后发现时对应Tomcat和JDK的版本要额对应的框架一致。

修改了JDK和tomcat的版本之后就可以成功启动了。

阅读全文
0 0
原创粉丝点击