Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NoClassDefFoundError

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using nt-server, jsdk2.0 and com.oreilly.servlet package. I have set my classpath on the NT and my program compiles on the NT. However when i run the servlet runner , it throws the following error :
Error: 500
Internal Servlet Error:
java.lang.NoClassDefFoundError: com/oreilly/servlet/MultipartRequest
at SimpleServlet11.doGet(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at com.sun.web.core.ServletWrapper.handleRequest(Compiled Code)
at com.sun.web.core.InvokerServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at com.sun.web.core.ServletWrapper.handleRequest(Compiled Code)
at com.sun.web.core.Context.handleRequest(Compiled Code)
at com.sun.web.server.ConnectionHandler.run(Compiled Code)
The oreilly package is placed in C:\jdk1.2.2\com\oreilly\servlet
The jsdk2.0 package is in d:\jsdk2.0
My servlet is placed in c:\websph~1\appser~1
The servlet runner is executed as under :
d:\jsdk2.0\bin>servletrunner -d c:\websph~1\appser~1
If anyone could let me know, why the servletrunner is not able access the oreilly package when it is able to compile the same ?
It would of great help if i could get an early answer to my prob...
My email address is : josxavier@hotmail.com

thanks
JOSEPH XAVIER

 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to put the O'Reilly classes in the classpath used by the servletrunner, as well as in the classpath used by whatever compiler or IDE you are using.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic