473,609 Members | 1,868 Online
Bytes | Software Development & Data Engineering Community
+ 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 51068
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
2802
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 and above. The progress bar code is written in javascript in an external js file (progressbar.js). The web screen is in a seperate jsp file (Registration.jsp). The problem I'm having is that the progress bar is not showing in Netscape 4.75 on a...
3
83412
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 my project and fetching our source tree again 4) Yes, the Module window shows that all symbols are loaded when running in the debugger 5) Yes, i'm rebooted. 6) Yes, i've deleted my bin and obj folders, restarted, and tried
0
5656
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 ChatDispatch.java
3
1133
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 view is a calculated field not stored in the database. It needs to be calculated when any of 3 columns in the datagrid are changed. problem 1: What event for the datagrid is triggered when a cell is modified AFTER it has loaded?...
1
1388
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 package (let’s call it, proj). The task of the first servlet is to build up an Web HTML form for gathering data. The second servlet does validation and store entry data to Database. The problem is: At first call for first servlet the application...
1
1113
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
1554
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 was have the jsp page refresh often and the page data update by a bean containing the properties file details. The main servlet class continously running on the server regularly updates the properties file. I am currently using a properties file,...
1
1190
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. There is no problem with data display but the problem is that I don't know how I should do the download part and that also in servlets.I mean to say I have to use just servlet only for this functionality.I am using NetBeans 6.0. ...
2
2836
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 and another is.Data Report , but in my system only Data Environment displayed but the Data Report not opened , and it showed me the error msg " The file C:\Program Files\Microsoft Visual Studio\VB98\Template\Projects\DataRpt.Dsr could not be...
0
8139
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8555
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7024
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6064
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5524
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4032
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4098
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2540
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1403
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.