tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid <>
Subject Re: Classloader between Web application and system loader
Date Thu, 14 Jan 2010 11:12:50 GMT
On 14/01/2010 02:40, youngm wrote:
>> Put expanded classes into WEB-INF/classes.
>> Likewise, in CATALINA_BASE/lib
> So CATALINA_BASE/lib jars and classes are used before the application
> (WEB-INF/lib and /classes)?
> under Class
> Loader Definitions seems to indicate otherwise.  The way I read it the
> application's WEB-INF/lib and classes are used before CATALINA_BASE/lib.
> Though perhaps I'm reading it wrong?
> I like the idea of placing my patch jars and classes in CATALINA_BASE/lib
> over WEB-INF so that I can more easily see what patches have been applied to
> an environment I just didn't think those would be loaded before the
> application's.
> Thanks,
> Mike

You might get away with adding individual classes to the classloader 
tree, but multiple jars containing the same class is likely to cause 
problems.  In fact, I'm not even sure the former is foolproof.

I don't the classloader hierarchy is designed to handle patching.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message