On 1/9/06, Oded Arbel <[EMAIL PROTECTED]> wrote:
>
<snip/>
> So now if an application uses a local library, and that library required
> a third party jar, it can't find it.
> The way I see it, I have two options - either put all the 3rd party
> libraries back in the JVM classpath, or build jars from my locally
> developed libraries and copy them by hand to the web applications'
> folder. I don't like either option, and I would really like a third one
> - something like configuring the default web.xml file to add external
> directories to the web-app class loader ? can something like that be
> done ?
>

Based on my reading of the Context element at
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html, no such
thing can be done.

Your best bets are:
1. Alter the Tomcat startup batch file to Include those folders that you need.

2. Write a batch file that'll copy the classes you need to the web
apps' classes fodlers, and then call Tomcat via the startup batch
file. This way, you'll not need to change Tomcat's startup batch file,
plus with a bit of experimentation and care, you'll avoid the error
prone manual copynig.

3. You might even wish to see if you could copy classes into the
classes folder while Tomcat is running. That way the web apps would
get reloaded. You'd need to configure Tomcat to recognize the Web apps
to be reloadable, of course.

-- Sriram

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to