标签:
今天启动Tomcat启动不了,报以下错:SEVERE: Context [/******] startup failed due to previous errors
Tomcat报的错太含糊了,什么错都没报出来,只提示了Error listenerStart。为了调试,我们要获得更详细的日志。可以在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 = ${catalina.base}/logs
org.apache.juli.FileHandler.prefix = error-debug.
java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
Tomcat启动报Error listenerStart错误
标签:
原文地址:http://my.oschina.net/sphl520/blog/387431