Hi............
When i am started the tomcat server it started.
but it not load the jar files wht we deploving
file.suppose we load the wapp folder in webapps.
At running time it show the below error in tomcat server
INFO: validateJarFile(C:\Program Files\Apache Software
Foundation\Tomcat 5.0\web
apps\wapp\WEB-INF\lib\servlet-api.jar) - jar not loaded. See
Servlet Spec 2.3, s
ection 9.7.2. Offending class: javax/servlet/Servlet.class

How to slove this problem in my system.
plz give answer for this problem.

Answer Posted / m gangadhar

hi,

do one thing, i think the servlet-api.jar which ur using is
corrupted so take latest form net. and deploy ur application.

Set class path then keep ur webapp folder structure contains
App
|-----WEB-INF
|------classes
------web.xml compile the classes first by
setting jar (servlet-api.jar) which should be C:\Program
Files\Tomcat 5.0\server\lib\servlet-api.jar

copy jar file from tomcat directory structure C:\Program
Files\Tomcat 5.0\server\lib and keep in ur
webapps\wapp\WEB-INF\lib it will solve ur problem sure.

if any Issues please feel free to contact my mail id.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between servlet and jsp?

803


What is http servlet? Explain with the help of an example.

783


What do you mean by request dispatcher in servlet? Also explain its methods.

834


What is the difference between get and post methods?

775


What mechanisms are used by a Servlet Container to maintain session information?

885


What are the type of protocols used in httpservlet?

789


Explain the servlet filter.

713


Why jsp is better than servlet?

734


What are the life cycle methods of a servlet?

772


What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?

752


What is a servlet?

829


What is servlet? Explain

768


Does servlet have main method?

894


What are the life cycle methods of the servlet?

807


Can you refresh servlet in client and server-side automatically?

797