Startup failed due to previous errors

Source: Internet
Author: User
Tags web services tomcat log4j

This newly established project, released to Tomcat above the time, always prompt startup failed due to previous errors;

The complete error message is:

Info: Container org.apache.catalina.core.ContainerBase. [Catalina]. [localhost]. [/bpslocal] have not been started
2010-10-19 22:56:53 Org.apache.catalina.loader.WebappClassLoader Validatejarfile
Info: Validatejarfile (C:/primeton/bps/apache-tomcat-5.5.20/webapps/bpslocal/web-inf/lib/j2ee.jar)-jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending Class:javax/servlet/servlet.class
Log4j:warn No Appenders could is found for logger (org.apache.commons.digester.Digester.sax).
Log4j:warn Initialize the log4j system properly.
2010-10-19 22:56:53 org.apache.catalina.core.StandardContext Start
Severity: Error Listenerstart
2010-10-19 22:56:53 org.apache.catalina.core.StandardContext Start
Severity: Context [/bpslocal] startup failed due to previous errors

First search keyword error, the result gives the opinion is my bag superfluous, deleted me an afternoon, also did not fix, the mood is very irritable. When I see this passage, I find out the problem. I used the tool to add some XML configuration information to my deployment before it was deployed, causing some servlets to not exist and then not starting up.

Author: Hongyiqiye Link: http://hongyiqiye.javaeye.com/blog/266068

The startup failed due to previous errors error is often sent when deploying apps on Tomcat. This error often makes people not feel the brain. Here are a few things to find out:

1.web.xml file, this file defines a lot of web services that are required to start the class, XML files, and if these cannot be found, a startup failed due to previous errors error occurs.

2. If you use spring, the class that is defined in Applicationcontext.xml, the XML file, is not found and the error is reported.

3. If you use Ibatis, the XML file defined in Sqlmapconfig.xml will also be reported in this error.

The experience is to make sure that each piece of information defined in the configuration file is clear and not used by someone else's code, which will solve the problem.

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.