Blog categories:
Tomcat
tomcat
Tomcat cannot be started today, the following error is reported:
org. Apache. Catalina. Core. StandardContext startInternal
SEVERE: the Error listenerStart
org. Apache. Catalina. Core. StandardContext startInternal
SEVERE: Context [/*****] startup failed due to previous errors
online to find more than N articles, all did not hit the point.
later found a method on foreign websites
http://grails.1312388.n4.nabble.com/Deployment-problems-td4628710.html.
I tried it and it worked. The plan is as follows.
Tomcat Error is too vague, nothing is reported, only prompt Error listenerStart. To debug, we need to get a more detailed log. You can create a new file called Logging.Properties in the Web-inf/Classes directory as follows
Java code
- 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. The prefix = error – debug. Java. Util. Logging. ConsoleHandler. Level = FINE Java. Util. Logging. ConsoleHandler. Formatter = Java. Util. Logging. SimpleFormatter ol>
thus, when we start tomcat again, we will generate a more detailed log error-debug.2012-05-31.log under the logs directory.
let’s go in and see what’s wrong.
the error I encountered was FileNotFoundException. The mistake that everybody encounters should have all sorts of, so want specific problem specific analysis.
tomcat logging of document may refer to http://tomcat.apache.org/tomcat-7.0-doc/logging.html