Java Web App under Tomcat servlet API packet conflict problem

Source: Internet
Author: User

Under Tomcat 7.0.59, Java played a war package that relied on the Service API's package, and then Tomcat started to report the following error, causing the application to fail to start and not be accessible.


Mar, 11:29:09 PM org.apache.catalina.loader.WebappClassLoader validatejarfileinfo:validatejarfile (/home/ Ubuntu/apache-tomcat-7.0.59/webapps/jiagoushi/web-inf/lib/servlet-api-3.0-alpha-1.jar)-jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending Class:javax/servlet/servlet.class

Check the application of the Pom dependency, the following dependencies will be removed.


<dependency><groupId>javax.servlet</groupId><artifactId>servlet-api</artifactId> <version>3.0-alpha-1</version></dependency>


Java Web App under Tomcat servlet API packet conflict 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.