Error listenerstart error reported during Tomcat startup

Source: Internet
Author: User

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
  1. Handlers = org. Apache. Juli. filehandler, java. util. Logging. lelehandler
  2. ######################################## ####################
  3. # Handler specific properties.
  4. # Describes specific configuration info for handlers.
  5. ######################################## ####################
  6. Org. Apache. Juli. filehandler. Level = fine
  7. Org. Apache. Juli. filehandler. Directory =$ {Catalina. Base}/logs
  8. Org. Apache. Juli. filehandler. prefix = Error-Debug.
  9. Java. util. Logging. lelehandler. Level = fine
  10. 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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.