Tomcat cannot be started today. The following error is reported:
Org. Apache. Catalina. Core. standardcontext startinternal
Severe: Error listenerstart
Org. Apache. Catalina. Core. standardcontext startinternal
Severe: context [/******] startup failed due to previous errors
N articles have been found online, but they are not crucial.
I found a method on a foreign website.
Http://grails.1312388.n4.nabble.com/deployment-problems-td4628710.html.
I tried it. Yes. The solution is as follows.
The error reported by Tomcat is too vague. Nothing is reported, and only error listenerstart is prompted. For debugging, we need to obtain more detailed logs. You can create a new file named logging. properties under the WEB-INF/classes directory with the following content:
Java code
- Handlers = org. Apache. Juli. filehandler, java. util. Logging. lelehandler
- ######################################## ####################
- # 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. lelehandler. Level = fine
- Java. util. Logging. lelehandler. formatter = java. util. Logging. simpleformatter
In this way, when we start Tomcat again, a more detailed log error-debug.2012-05-31.log will be generated under the logs directory.
Let's see what's wrong.
The error I encountered is filenotfoundexception. You may encounter all kinds of errors, so you need to analyze the specific problems.
For more information about Tomcat logging, see the http://tomcat.apache.org/tomcat-7.0-doc/logging.html.
Error listenerstart error reported during Tomcat startup