• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

please help about the error

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes.
 
I think she's lovely. It's this tiny ad that called her crazy:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic