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

时间:2022-10-12 20:32:00

这里说明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的版本之后就可以成功启动了。