• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

please help about the error

 
narasimha rayaprolu
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the meaning of this error?

INFO: validateJarFile(C:\Tomcat-5.0.28\webapps\Test\WEB-INF\lib\servlet-api-2.4.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class

Please help me out.
 
Soumyajit Hazra
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The servlet_api.jar is there is in tomcat lib and the container is programmed to fetch it from that location. If you put it in your own application then it throws that exception. It will always look into it's own servlet_api.jar not what you put in your own application lib.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Soumyajit Hazra wrote:The servlet_api.jar is there is in tomcat lib and the container is programmed to fetch it from that location.

Correct, except that the name of the file is servlet-api.jar.

The servlet and JSP jar files should never ever ever, and did I mention ever, be placed in a web app's WEB-INF/lib folder.
 
Michael Gimm
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Though this was posted in 2002, I hope someone is still watching this despite the non-descript subject line. I am new to the java world and have found myself "thrown" into a webmaster role in which myeclipse was used to develop our website - I did not set this beast up. AT any rate in-line with the original post I understand the issue of Tomcat taking care of suppliying the needed .jar file:

servlet-api-2.4.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class

However, based on a reply "The servlet and JSP jar files should never ever ever, and did I mention ever, be placed in a web app's WEB-INF/lib folder" my WEB-INF/lib folder is chaulk full of jar files. Despite this fact and back ttot he original issue - should I just delete the

"servlet-api 2.4.jar" file from my WEB-INF/lib folder and let "servlet-api.jar" in the tomcat/lib folder handle it?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic