On Mon, 26 Mar 2001, Kumar, Amit wrote:

> Keep other class files separate from servlet class files. You might want to
> create a package and then import them to your servlet classes. After doing
> so
> you can update your jserv.properties file as mentioned below.
>
> Amit
> -----Original Message-----
> From: saroumane [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 26, 2001 1:36 PM
> To: [EMAIL PROTECTED]
> Subject: Re: NoClassDefFoundError
>
>
> I don't think so.
> i think that the repositories properties for jserv is the mounting point of
> a servlet zone
>
> i think that you should add a new line 'wrapper.classpath=path/to/class' in
> the file jserv.properties in the Execution Parameter area
>

Yoy are right. BUT then you have to restart Apache. AND the package is
"in scope" for all servlets, not just the one that needs it.
I prefer to put servlet zone specific packages in the 'repositories'
property. This also means that a package update is automatically
detected and the servlet reloaded.
Of course, if it is a general package (i.e. JDBC driver) that is shared
between many servlet zones and it is virtually never changed then I put
it in the jserv.properties file.

Regards,
/Kell.
--
>>  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

Reply via email to