org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full d

在idea创建SSM框架,运行tomcat的时候遇到下面的错误


01-Aug-2020 13:26:03.863 严重 [RMI TCP Connection(2)-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
01-Aug-2020 13:26:03.864 严重 [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [/SSMProjects] startup failed due to previous errors
[2020-08-01 01:26:03,922] Artifact SSMProjects:war exploded: Error during artifact deployment. See server log for details.

然而没有其它得提示,让我们自己去找日志查看,这个时候有两种方法查看错误信息

第一种

idea的日志本身是放在下面的文件里(其中Administrator就是自己电脑的账户名,Unnamed_SSMProjectsDemo包含了自己的项目名)

C:\Users\Administrator\.IntelliJIdea2017.1\system\tomcat\Unnamed_SpringMVCDemo\logs

org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full d_第1张图片

第二种

在resources目录下添加logging.properties文件

org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full d_第2张图片

文件里添加

handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler    

############################################################
# Handler specific properties.
# Describes specific configuration info for Handlers.
############################################################

org.apache.juli.FileHandler.level = FINE    
org.apache.juli.FileHandler.directory = ../logs    
org.apache.juli.FileHandler.prefix = error-debug.    

java.util.logging.ConsoleHandler.level = FINE    
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

然后就可以在控制台查看错误信息了

 

另外,根据我自己修改后的,主要是maven依赖的问题,可能是某个jar没有下载成功

希望此文能有所帮助

 

参考链接:https://www.matools.com/blog/190314120

https://www.cnblogs.com/sxdcgaq8080/p/8005886.html

你可能感兴趣的:(ssm,intellij,idea)