--- Simon Kitching <[EMAIL PROTECTED]> wrote:
<snip>

> Surely tomcat could have a container/lib directory
> in which jar files 
> are visible to tomcat but not to the webapps?
> Putting jcl in here 
> instead of shared/lib would then make logging in
> individual webapps much 
> more predictable. Yes, webapps would then have to
> provide 
> commons-logging.jar themselves in WEB-INF/lib, and
> that would cause 
> duplicate copies in memory, but that also means that
> the individual 
> webapps are properly isolated from each other.
> Optimisations with 
> potentially complex side-effects (libs in a shared
> classloader) should 
> be an *optional* step, not the default for the
> container.

A tricky aspect of Tomcat is that besides providing
container services, it also provides code that runs
inside the individual web applications (e.g. JSP
servlet and the DefaultServlet for serving static
content).  So, while in general Tomcat acts more like
an application and could probably pick whatever
logging framework it wants, some portions of its code
are more like a library and should use a logging
abstraction like JCL.  These portions of the code need
to be in the shared classloader, and the
commons-logging-api.jar needs to be available to them.

Brian


                
__________________________________ 
Do you Yahoo!? 
Yahoo! Personals - Better first dates. More second dates. 
http://personals.yahoo.com


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

Reply via email to