Problem using .jars in Tomcat 5.0.16

From: jajoo (jivkoto_at_abv.bg)
Date: 01/23/04


Date: 22 Jan 2004 15:19:44 -0800

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!



Relevant Pages

  • Re: Converting Java batch file from windows to unix format
    ... > library's in a lib directory. ... > I have created a windows batch file that compiles all and then runs the ... These jar files have been specified with an absolute path. ...
    (comp.unix.shell)
  • java.lang.NoClassDefFoundError
    ... I am developing a web application in JSF, usign application server 9.0 ... It works fine till I add 2 libraries, 2 .jar files in the project ... When I go in the log file of the server this is the error message I ... Anybody has an idea why when I add the two libraries at the project I ...
    (comp.lang.java.programmer)
  • Re: J2EE installation help
    ... Installing the j2EE1.4 with Sun Application Server does not update the PC's ... none of the j2ee app servers do this. ... j2ee jar files you want to compile with. ...
    (comp.lang.java.programmer)
  • Re: JWS/JOGL test..
    ... >I specify the size of the jar files in the JNLP I created, ... >in case the server does not return the file size, ... I did not get any indicator bars, ...
    (comp.lang.java.programmer)
  • Re: Is it possible to write an applet that reads image and data files from web server that is easy f
    ... >without having to use certificates and/or java policy file ... To read images from jar files, or the server see ...
    (comp.lang.java.programmer)