473,486 Members | 1,953 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Servlet jar not loaded problem

rsrinivasan
221 New Member
Hi all,
I am using Apache-topcat as my web server. And i am using Eclipse IDE. When i run the tomcat from Eclipse IDE, i have the following message in my console.

Expand|Select|Wrap|Line Numbers
  1. WebappClassLoader: validateJarFile(D:\jakarta-tomcat-4.1.27\webapps\pricing\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
What is this? where i am going wrong?
Jan 9 '08 #1
5 51054
r035198x
13,262 MVP
Hi all,
I am using Apache-topcat as my web server. And i am using Eclipse IDE. When i run the tomcat from Eclipse IDE, i have the following message in my console.

Expand|Select|Wrap|Line Numbers
  1. WebappClassLoader: validateJarFile(D:\jakarta-tomcat-4.1.27\webapps\pricing\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class



What is this? where i am going wrong?
servlet.jar comes with Tomcat. You should not have to put it in your web-inf folders.
It's probably in [TOMCAT]/common/lib
Feb 4 '08 #2
rsrinivasan
221 New Member
servlet.jar comes with Tomcat. You should not have to put it in your web-inf folders.
It's probably in [TOMCAT]/common/lib
Ok fine. When i remove servlet.jar file from web-inf, it does not through that error. But when i remove the servlet.jar file from Eclipse build path, it throws like this

Expand|Select|Wrap|Line Numbers
  1. The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required .class files
.
Feb 5 '08 #3
r035198x
13,262 MVP
Ok fine. When i remove servlet.jar file from web-inf, it does not through that error. But when i remove the servlet.jar file from Eclipse build path, it throws like this

Expand|Select|Wrap|Line Numbers
  1. The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required .class files
.
Why are you removing it from Eclipse's build path?
Feb 5 '08 #4
rsrinivasan
221 New Member
Why are you removing it from Eclipse's build path?
When i deploy my web application, it automaticaly put the file in the web-inf folder. How can i avoid it?
Feb 5 '08 #5
pavanuec
3 New Member
follow the link for solution
http://techpitcher.com/blog/?p=11
Feb 17 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2793
by: Lizzy | last post by:
I have an internet application which has a progress bar show whenever the customer is requesting data from the server. This progress bar is coded to work in both Netscape 4.75 and above and IE 5.0...
3
83398
by: sho_nuff | last post by:
Looking for the be all end all answer to this issue. 1) Yes, i'm running in the Debug mode and not in Release 2) Yes, the timestamp on my pdb and dll file are in sync 3) Yes, i'm tried deleting...
0
5643
by: ankur | last post by:
WHEN I RUN THIS WEB APPLICATION ON Tomcat5.5.9 SERVER MY HttpChatApplet sccessfully Loaded from ChatDispatch but running on some another PC HttpChatApplet not loaded my Coad ...
3
1119
by: Tony K | last post by:
I'm note sure how to state this but, I have a Windows form that contains 2 tables. Details View on top and Datagrid on the bottom. The two tables are related. One of the fields in the details...
1
1375
by: elsheh | last post by:
I am trying to develop JavaServlet application using Apache Tomcat server. My application consists of two servlets and Java class for pooling connection. I need to include all my servlets in the same...
1
1106
by: sudhakar78l | last post by:
Hi.I'm a J2EE beginer.I'm getting "HTTP 404" while sending a request to a servlet from browser.How to solve this.
3
1551
by: krishna81m | last post by:
Hello, I am looking for a solution to update a .jsp page (kind of progress bar) which shows current progress in a huge simulation when users have to wait for longer periods and the way to do it...
1
1181
by: ITCraze | last post by:
I have to make a servlet based application in which the web form displays data coming from mysql table.And we have to give the user the facility of downloading this data into Microsoft word. ...
2
2831
by: hussainiyad | last post by:
Hi to all i today installed tthe v.b 6.0 in my system and i found 2 main problems problem1>--.I couldn,t able to open the data Project ,we know it contains two components one is data Environment...
0
7123
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6842
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7319
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5430
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4864
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4559
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3069
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.