Re: Problem using .jars in Tomcat 5.0.16

From: hiwa (HGA03630_at_nifty.ne.jp)
Date: 01/23/04


Date: 23 Jan 2004 02:04:05 -0800

jivkoto@abv.bg (jajoo) wrote in message news:<2b392568.0401221519.7d0b3040@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.(MultipartRequest.java:222)
> com.oreilly.servlet.MultipartRequest.(MultipartRequest.java:109)
> com.oreilly.servlet.MultipartRequest.(MultipartRequest.java:89)
> org.apache.jsp.receive_jsp._jspService(receive_jsp.java:45)
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.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.



Relevant Pages

  • JAR files in launched apps JAR (navigating URLConnection/JarURLConnection?)
    ... I have an application bundled like this (one single JAR containing ... Now I'm trying to extract the *sub* (lib) JAR's executing: ... returns connection to *enclosing* JAR ... I had expected to get a direct connection to the JAR file inside the ...
    (comp.lang.java.programmer)
  • Re: AspectJ under Ubuntu
    ... Just download a JAR and put it in your eclipse/jboss or whatever lib ... folder and you'll be fine. ...
    (alt.os.linux)
  • Re: throw () in der Signatur?
    ... ob es die Binaerkompatibilitaet der Lib ... Exception Specifier anlegst und deren gemangelte Signatur anschaust. ...
    (de.comp.os.unix.programming)
  • Re: unexpected exception handler
    ... STL lib does not provide source codes, but it still throws exception. ... 3rd party library without source code throws. ...
    (microsoft.public.vc.language)
  • Re: exception in thread? in Net::SSH::Multi
    ... unknown to me) on exception handling. ... if I add another rescue statement in the lib: ... session.exec("hostname") ...
    (comp.lang.ruby)