Shadkam Islam wrote:

> Hi,
>    I am using com.oreilly.servlet package to upload files. It works fine
> if I use servlet runner. But when I tried it in apache jserv, it gave the
> following error,
>
> java.lang.NoClassDefFoundError: com/oreilly/servlet/MultipartRequest:
> com/oreilly/servlet/MultipartRequest
>
>    the error definition says that, this error will come if "The
> searched-for class definition existed when the currently executing class
> was compiled, but the definition can no longer be found."
>
>    But if this is the case why the code is successfully working for
> servletrunner.
>
> Thanks in advance,
> Shad.
>

Add the directory or JAR file that you have the "com.oreilly.servlet" package
in to the "repositories" parameter of the zone properties file that your
servlet is running in.  Like many servlet engines (but not the servletrunner
from the JSDK), Apache JServ uses a custom class loader so that it can reload
servlets that have been modified.  The system CLASSPATH is ignored by this
class loader -- instead, the stuff you list in the "repositories" parameter is
the only place that it looks for servlets, or classes loaded by those
servlets.

Craig McClanahan

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to