严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors

今天突然遇到了这样一问题,没有报错的信息只有下面两行

26-Oct-2019 18:37:14.990 严重 [RMI TCP Connection(3)-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
26-Oct-2019 18:37:14.992 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors

这样弄的一脸蒙逼,所以我们要看到打印的日志,在WEB-INF/classes/目录下创建logging.properties

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    

这样在你运行的时候就可以看到了错误信息
根据错误信息在解商问题

Last modification:October 26th, 2019 at 06:45 pm
如果觉得我的文章对你有用,请随意赞赏

Leave a Comment