starting Tomcat today will not start, report the following error:
Org.apache.catalina.core.StandardContext startinternal
Severe:error Listenerstart
Org.apache.catalina.core.StandardContext startinternal
Severe:context [/******] startup failed due to previous errors
The error of the tomcat is too vague, nothing has been reported, only prompted the error listenerstart. In order to debug, we want to get a more detailed log. You can create a new file in the Web-inf/classes directory called Logging.properties, the content is as follows
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
when we start Tomcat again, a more verbose log error-debug.2012-05-31.log is generated in the logs directory.
Let's go inside and see what's wrong.
The mistake I came across was filenotfoundexception. We should have all kinds of mistakes, so we need to analyze the specific problems.
Tomcat Boot error Listenerstart errors