Today, start Tomcat can not start, reported 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
On the internet to find more than n articles, are not to the point.
Later found a method on the foreign website
Http://grails.1312388.n4.nabble.com/Deployment-problems-td4628710.html.
I've tried it, it's OK. The programme is as follows.
The Tomcat's mistake was too vague to report anything wrong and only prompted the error listenerstart. In order to debug, we need to get a more detailed log. You can create a new file in the Web-inf/classes directory called Logging.properties, which reads 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.J Uli. 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
This way, when we start Tomcat again, a more detailed log error-debug.2012-05-31.log is generated in the logs directory.
Let's go in and see what's wrong.
The mistake I came across was filenotfoundexception. You should have all kinds of mistakes, so you need to analyze the specific problems.
Tomcat's logging documentation is specific to the reference http://tomcat.apache.org/tomcat-7.0-doc/logging.html
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.