tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid <...@pidster.com>
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)?
>
> http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html 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.

p

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message