473,883 Members | 1,680 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 51088
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
2818
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
83435
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
5667
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
1142
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
1399
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
1118
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
1573
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
1198
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
2844
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
9789
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11137
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10409
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9570
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
7969
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
5795
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
5989
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4608
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
3
3230
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.