Craig R. McClanahan wrote:
Remy Maucherat wrote:

Jan Luehe wrote:

good point. What about environments that embed Tomcat without following
Tomcat's directory layout, and in which the classloader hierachy/depth is different from that in Tomcat?

I honestly don't understand why we're searching parent classloaders for TLDs.

So that you can have a single copy of a tag library that is shared across all of the webapps in that container -- for example, this is what JWSDP does with the JSTL and JavaServer Faces tag libraries. The most important reason that you need to scan the TLDs at startup is that you can define library-specific listeners in the TLD that become automatically installed, without having to touch web.xml.

However, the specification requires that JARs in /WEB-INF/lib are scanned. It doesn't say anything about shared JARs, which would hint that, in this situation, TLDs should be in /WEB-INF. Furthermore, defining application level listeners and stuff like that in a shared component seems weird to me.


Remy


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



Reply via email to