aspose file tools*
The moose likes Servlets and the fly likes NoClassDefFoundError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "NoClassDefFoundError" Watch "NoClassDefFoundError" New topic
Author

NoClassDefFoundError

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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

Joined: Jan 07, 1999
Posts: 6920
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.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NoClassDefFoundError