java - Problems with Tomcat server and JSP web application -


i running jsp/servlet web application , out of experienced random problems don't make sense. checked catalina.out file check log files, , noticed contained of following messages

    severe: error starting static resources             java.lang.illegalargumentexception: invalid or unreadable             war file : error in opening zip file           info: validatejarfile(/home/weremo/appservers/            apache-tomcat-6.0.26/webapps   /wma/web-inf/lib/            servlet-api.jar) - jar not loaded. see servlet spec             2.3, section 9.7.2. offending class: javax/servlet/servlet.class 

i aware of message means, in dark have caused it, or effects have on application.

make sure servlet-api.jar file not included in webapp, if is, remove it.

the servlet api provided servlet container. webapps not allowed load classes in javax.servlet package, , that's what's causing error.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -