One or more listeners failed to start. Full details will be found in the appropriate container log

搭建的SSM框架,启动Tomcat的时候,报严重One or more listeners failed to start. Full details will be found in the appropriate container log file

[2018-08-12 11:56:19,745] Artifact SpringMVCDemo:war exploded: Artifact is being deployed, please wait...
12-Aug-2018 11:56:20.338 严重 [RMI TCP Connection(5)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
12-Aug-2018 11:56:20.339 严重 [RMI TCP Connection(5)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [/springmvcdemo] startup failed due to previous errors

Full details will be found in the appropriate container log file 意思是让我们在日志文件中查看详细报错信息,那日志文件在哪里呢?
web下的WEB-LNF路径下设置一个classes文件夹,里面创建一个logging.properties文件
内容写上

org.apache.catalina.core.ContainerBase.[Catalina].level=INFO 

org.apache.catalina.core.ContainerBase.[Catalina].handlers=java.util.logging.ConsoleHandler

然后我们就可以愉快的找到错误去解决了,手动狗头,别打我!

你可能感兴趣的:(JAVA)