On Mon, 26 Mar 2001, Dr. Muhammad Masroor Ali wrote:
> Hi,
> I am getting a NoClassDefFoundError for one of my classes in the servlet
> side during runtime. This is strange because that particular class (and
> .java) file is in the very same directory of the servlet file using it.
> Could you please point me to some checklist and/or suggestion which
> helps me finding my error. I am using Apache along with JServ.
>
> This error does not occur when the same class file is used by a
> notservlet program.
>
It sounds as if you have a CLASSPATH problem. You should make sure that
all your classes are in the CLASSPATH for the servlet. This is done by
adding the place where the class(es) are placed in the zone.properties
file for the particular servlet zone.
The property to set is 'repositories', e.g.:
repositories=/path/to/your/class
Regards,
/Kell Sønnichsen
--
>> Kell Soennichsen, UNI-C, Olof Palmes Alle 38, DK-8200 Aarhus N. <<
>> phone: +45 8937 6666 / +45 8937 6674, fax: +45 8937 6677 <<
>> email: [EMAIL PROTECTED], http://www.uni-c.dk <<
>> The two most common elements in the universe are hydrogen <<
>> -- and stupidity. -- Harlan Ellison <<
___________________________________________________________________________
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