起因:
tomcat启动失败,日志中没有错误
仔细查看后发现:
org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
在网上查找一翻后发现有可能是slf4j jar包冲突
于是去tomcat/webapps/项目/WEB-INF/lib 下删除 slf4j-1.5.8.jar ,然后启动成功
但总这样删也不是办法,于是就想着去pom.xml中删除依赖,没想到删除了pom.xml中的依赖后还在,倔强的不屈服。
想了半天应该是其他jar包的第三方依赖,于是就找啊找 ,觉得很有可能和commons-logging有关,毕竟slf4j是日志门面,而它是一个日志
于是在pom.xml中添加
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.2</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
去除所有依赖,成功。完。