tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cox, Charlie" <c...@cincom.com>
Subject RE: classloader
Date Tue, 10 Sep 2002 16:08:28 GMT
> my problem:
> I have many jar-files only needed by *one* context, but I 
> have to put all 
> that jar-files into the same directory (/lib/apps) - that's 
> not very easy to 
> maintain!!!
> 

you should be able to put them all in /WEB-INF/lib and they should be ok.
You can not have jars in /lib/apps that need other classes in /WEB-INF/lib.


> so I thought of writing a kind of classloader, that 
> additionaly loads classes 
> from jar-files in /webapps/<context>/WEB-INF/lib (but I never 
> did this before 
> - and I don't know if it's possible!!!)
> this classloader is instantiated by the servlet; and all 
> classes that are not 
> found by the VM-classloader, are loaded using MY classloader ...
>

I wouldn't do this unless you *really* have to.

Charlie 
 
> any idea???
> 
> thanks
> any hints appreciated
> michi
> 
 

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message