----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Have you tried placing the dynamically loaded class into a directory
different than your servlet directory? In our application, we have many
classes that are loaded on the fly -- even recompiled on the fly -- and then
reloaded (through a custom class loader). By placing these dynamic classes
into a seperate directory structure belonging to its own class package, we
had no problems. We only used a custom class loader because our classes
change and we needed to be able to reload them (the bootstrap class loader
does not provide the ability to unload).
Good luck!
Kevin
-----Original Message-----
From: Glen Newton <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
<[EMAIL PROTECTED]>
Date: Monday, April 03, 2000 12:25 PM
Subject: problem with jserv 1.1
>----------------------------------------------------------------
>BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
>WHEN YOU POST, include all relevant version numbers, log files,
>and configuration files. Don't make us guess your problem!!!
>----------------------------------------------------------------
>
>
>I have a problem with jserv (i don't know about tomcat) but is is
>as follows:
>
> I have a servlet (foo.class) in a directory (/aa/bb) all set up in
> jserv, with the appropriate zone, etc. Initially foo.class is all
> there is: it does it all. It woks just fine.
>
> Now things have changed. Based on user input, foo.class dynamically loads
> a class which also exists in /aa/bb along with foo.class. foo.class can't
> find the class. this is because of jserv configuration. if /aa/bb is
> put in the jserv.properties file:
> wrapper.classpath=/aa/bb
>
> Then foo.class can find and load the class, but this messes up
> auto-reload.
>
> Does this call for a custom class loader??
>
> It is important that the classes are dynamically loaded for the
> application i have (i.e. that classes can be added/created after
> jserv starts up...). Any help would be appreciated.
>
>thanks,
>
> glen
>
>
>
>--
>--------------------------------------------------------------
>Please read the FAQ! <http://java.apache.org/faq/>
>To subscribe: [EMAIL PROTECTED]
>To unsubscribe: [EMAIL PROTECTED]
>Archives and Other: <http://java.apache.org/main/mail.html>
>Problems?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]