-1

INFO: validateJarFile(C:\jakarta-tomcat-5.5.7\webapps\nikhil1\WEB-INF\lib\servle t-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending clas s: javax/servlet/Servlet.class

Cœur
  • 34,719
  • 24
  • 185
  • 251
  • No, never put servlet-api.jar in lib folder. Your server will take care of it automatically, it will be in your server's lib directory. – Pradeep Simha Mar 29 '14 at 16:44
  • possible duplicate of [jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class](http://stackoverflow.com/questions/15601469/jar-not-loaded-see-servlet-spec-2-3-section-9-7-2-offending-class-javax-serv) – Raedwald Feb 13 '15 at 13:04

1 Answers1

1

The reason for the error is that the application server (for example, Tomcat) has already loaded the servlet-api.jar in the classpath.

To get rid of the error, just remove the jar from the WEB-INF/lib folder and restart the server.

Konstantin Yovkov
  • 60,548
  • 8
  • 97
  • 143