Results 1 to 3 of 3
  1. #1
    heman is offline Member
    Join Date
    Aug 2012
    Posts
    39
    Rep Power
    0

    Default NoClassDefFoundError using MultipartRequest

    Hello everyone.

    I am having a problem in using MultipartRequest class for uploading file.
    I had successfully compiled my program with no errors ,downloaded the cos.jar file and set the classpath using command prompt.

    But when I run my servlet on Weblogic 8.1 or Apache Tomcat server, it gives error which says :

    java.lang.NoClassDefFoundError: com/oreilly/servlet/MultipartRequest
    at uploadservlet.doPost(uploadservlet.java:16)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
    .....
    ..
    ...
    ..

    Can any one please guide me how to remove this error.

    Thanks and regards,,

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,450
    Rep Power
    18

    Default Re: NoClassDefFoundError using MultipartRequest

    Is the jar file containing that class in the WEB-INF/lib directory of your web app?
    The classpath is irrelevant to the web app.
    Please do not ask for code as refusal often offends.

  3. #3
    heman is offline Member
    Join Date
    Aug 2012
    Posts
    39
    Rep Power
    0

    Default Re: NoClassDefFoundError using MultipartRequest

    Thanks Tolls, it solves my problem.My WEB-INF/lib folder was missing the jar file.

Similar Threads

  1. Noclassdeffounderror
    By rreinh04 in forum New To Java
    Replies: 3
    Last Post: 06-20-2012, 09:50 PM
  2. Replies: 0
    Last Post: 02-04-2011, 05:05 PM
  3. NoClassDefFoundError
    By Dbirge in forum New To Java
    Replies: 0
    Last Post: 03-16-2010, 05:01 PM
  4. help with NoClassDefFoundError
    By chikoyzki06 in forum New To Java
    Replies: 2
    Last Post: 11-25-2009, 11:38 AM
  5. MultipartRequest File Upload parser 2.0B9
    By levent in forum Java Software
    Replies: 0
    Last Post: 05-12-2007, 12:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •