Validatejarfile jar not loaded. See servlet spec 2.3, section 9.7.2. offending class: javax/servlet/

Source: Internet
Author: User

Validatejarfile jar not loaded. See servlet spec 2.3, section 9.7.2. offending class: javax/servlet. Class

D:/program files/Apache Software Foundation/tomcat 6.0/webapps/BS/WEB-INF/lib

 

I was half killed by this problem. I checked it for a day and found the problem.

 

 

Put that
Jsp-api.jar
Servlet-api.jar
Delete it!

Details:
Webapps/maintenance/WEB-INF/lib/
Delete the servlet-api.jar below! You do not need to provide tomcat!
Take a look at other jar files and compare them with the tomcat/lib directory. If Tomcat already exists, don't keep it!
 
This reminds me that I also put J2EE in Tomcat/common/lib. jar and other packages, go to the common/lib unnecessary package, ensure that Tomcat/common/lib/and WEB-INF/lib under the two directories of the jar is not repeated, the problem is solved.
It turns out that after Tomcat is started, all the jar packages under the tomcat/common/lib directory are read into the memory, if the application in the webapps directory contains the same package under the WEB-INF/lib directory, it is estimated that packages of different versions may cause similar problems. Therefore, we recommend that you do not put the jar package in the tomcat/common/lib directory or the web-INF/lib directory.

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.