473,414 Members | 1,777 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Problem using .jars in Tomcat 5.0.16

Hi,
I have a problem with using *.jar files with Tomcat 5.0.16. I place
the jar in the lib directory of the application but server throws
Exception.

java.lang.NoClassDefFoundError: javax/servlet/ServletRequest
com.oreilly.servlet.MultipartRequest.(MultipartReq uest.java:222)
com.oreilly.servlet.MultipartRequest.(MultipartReq uest.java:109)
com.oreilly.servlet.MultipartRequest.(MultipartReq uest.java:89)
org.apache.jsp.receive_jsp._jspService(receive_jsp .java:45)
org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet .java:856)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet .java:856)

I tried to use the packege unpacked in the class directory. But result
was the same. With 4.1.* version there was not such a problem. If any
could help or to redirect me to a place where I could read how to
solve the problem I'll be THANKFUL!
Jul 17 '05 #1
6 6935
Nic
http://jakarta.apache.org/tomcat/faq/classnotfound.html

ji*****@abv.bg (jajoo) wrote in message news:<2b**************************@posting.google. com>...
Hi,
I have a problem with using *.jar files with Tomcat 5.0.16. I place
the jar in the lib directory of the application but server throws
Exception.

java.lang.NoClassDefFoundError: javax/servlet/ServletRequest
com.oreilly.servlet.MultipartRequest.(MultipartReq uest.java:222)
com.oreilly.servlet.MultipartRequest.(MultipartReq uest.java:109)
com.oreilly.servlet.MultipartRequest.(MultipartReq uest.java:89)
org.apache.jsp.receive_jsp._jspService(receive_jsp .java:45)
org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet .java:856)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet .java:856)

I tried to use the packege unpacked in the class directory. But result
was the same. With 4.1.* version there was not such a problem. If any
could help or to redirect me to a place where I could read how to
solve the problem I'll be THANKFUL!

Jul 17 '05 #2
Nic
http://jakarta.apache.org/tomcat/faq/classnotfound.html

ji*****@abv.bg (jajoo) wrote in message news:<2b**************************@posting.google. com>...
Hi,
I have a problem with using *.jar files with Tomcat 5.0.16. I place
the jar in the lib directory of the application but server throws
Exception.

java.lang.NoClassDefFoundError: javax/servlet/ServletRequest
com.oreilly.servlet.MultipartRequest.(MultipartReq uest.java:222)
com.oreilly.servlet.MultipartRequest.(MultipartReq uest.java:109)
com.oreilly.servlet.MultipartRequest.(MultipartReq uest.java:89)
org.apache.jsp.receive_jsp._jspService(receive_jsp .java:45)
org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet .java:856)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet .java:856)

I tried to use the packege unpacked in the class directory. But result
was the same. With 4.1.* version there was not such a problem. If any
could help or to redirect me to a place where I could read how to
solve the problem I'll be THANKFUL!

Jul 17 '05 #3
ji*****@abv.bg (jajoo) wrote in message news:<2b**************************@posting.google. com>...
Hi,
I have a problem with using *.jar files with Tomcat 5.0.16. I place
the jar in the lib directory of the application but server throws
Exception.

java.lang.NoClassDefFoundError: javax/servlet/ServletRequest
com.oreilly.servlet.MultipartRequest.(MultipartReq uest.java:222)
com.oreilly.servlet.MultipartRequest.(MultipartReq uest.java:109)
com.oreilly.servlet.MultipartRequest.(MultipartReq uest.java:89)
org.apache.jsp.receive_jsp._jspService(receive_jsp .java:45)
org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet .java:856)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet .java:856)

I tried to use the packege unpacked in the class directory. But result
was the same. With 4.1.* version there was not such a problem. If any
could help or to redirect me to a place where I could read how to
solve the problem I'll be THANKFUL!


I don't know the difference of specs between 4.x and 5.x. The last
thing I'd ever want to know! Dunk the jar into Tomcat lib, not your
app's lib. That'll be OK.
Jul 17 '05 #4
ji*****@abv.bg (jajoo) wrote in message news:<2b**************************@posting.google. com>...
Hi,
I have a problem with using *.jar files with Tomcat 5.0.16. I place
the jar in the lib directory of the application but server throws
Exception.

java.lang.NoClassDefFoundError: javax/servlet/ServletRequest
com.oreilly.servlet.MultipartRequest.(MultipartReq uest.java:222)
com.oreilly.servlet.MultipartRequest.(MultipartReq uest.java:109)
com.oreilly.servlet.MultipartRequest.(MultipartReq uest.java:89)
org.apache.jsp.receive_jsp._jspService(receive_jsp .java:45)
org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet .java:856)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet .java:856)

I tried to use the packege unpacked in the class directory. But result
was the same. With 4.1.* version there was not such a problem. If any
could help or to redirect me to a place where I could read how to
solve the problem I'll be THANKFUL!


I don't know the difference of specs between 4.x and 5.x. The last
thing I'd ever want to know! Dunk the jar into Tomcat lib, not your
app's lib. That'll be OK.
Jul 17 '05 #5
ns*****@tin.it (Nic) wrote in message news:<18**************************@posting.google. com>...
http://jakarta.apache.org/tomcat/faq/classnotfound.html


Thank You Nick,
I found the solution of the problem near to the link you gave me. It
was because the jar was put in the $JAVA_HOME/jre/lib/ext too, except
in the /WEB-INF/lib directory. When I removed it from
$JAVA_HOME/jre/lib/ext the problem was gone.
I still could not understand why, but everythig is ok. In the refer
was written that the jar in $JAVA_HOME/jre/lib/ext can cause problems
because these directories have a higher class loading priority than
any of the Tomcat class loaders. But i still wonder why this could be
a problem? Why Tomcat could not load the jar too. Nevermind I will
keep reading :)
Thank you very much!

Zhivko Mitrev
Jul 17 '05 #6
ns*****@tin.it (Nic) wrote in message news:<18**************************@posting.google. com>...
http://jakarta.apache.org/tomcat/faq/classnotfound.html


Thank You Nick,
I found the solution of the problem near to the link you gave me. It
was because the jar was put in the $JAVA_HOME/jre/lib/ext too, except
in the /WEB-INF/lib directory. When I removed it from
$JAVA_HOME/jre/lib/ext the problem was gone.
I still could not understand why, but everythig is ok. In the refer
was written that the jar in $JAVA_HOME/jre/lib/ext can cause problems
because these directories have a higher class loading priority than
any of the Tomcat class loaders. But i still wonder why this could be
a problem? Why Tomcat could not load the jar too. Nevermind I will
keep reading :)
Thank you very much!

Zhivko Mitrev
Jul 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Roy Benjamin | last post by:
I'm developing a WEB service for Sun ONE deployment (AppServer7). I'm developing on Windows XP Pro though will deploy on Solaris, Sun AppServer7 includes a XercesImpl.jar in share/lib. 2 kb...
0
by: mdh | last post by:
I am trying to learn the basics of MVC applications using a Tomcat infrastructure. I'm starting by building a simple application with: * a login.jsp page for a basic login form with a action...
2
by: bouchia.nazha | last post by:
Hello I have encountered a problem using tomcat, linux and ssl. My problem seem to be a JVM memory deallocation problem on Linux. This is my configuration: OS: Redhat7.2 Tomcat: 4.0 Jdk:...
3
by: Wolfie | last post by:
I'm having a strange problem running a jar file I created using Eclipse. The application works correctly inside the IDE -- it compiles, runs, etc. So I exported it to a jar file and am trying to...
0
by: kimbuba | last post by:
Hello all. I would like to ask the following question: What happens if i put many version of the same jar on a tomcat lib dir? I mean if i have MyLib_1.3.jar and MyLib_1.9.jar what happens if i...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
0
by: Ken Bass | last post by:
Hello all: I know that this is a very common problem. I have read many web pages and messages about it, and tried all different types of solutions. But nothing seems to work. The problem:...
11
by: mjahabarsadiq | last post by:
Hi I have created a web application. I am using ant to build the war and deploy in tomcat. The war file is deployed under "TOMCATE_HOME/work/standalone/localhost/onlineres.war". I have my...
0
by: rajasankar | last post by:
Hi, I am using Jython based application and trying to use inspect.py in the python files. Here is my code import inspect,os,sys,pprint,imp def handle_stackframe_without_leak(getframe): ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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
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,...
0
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
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...

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.