> WEB-INF/lib. In the 2.3 model, Y will override X. In the standard delegation
> model (i.e. Tomcat 3.2) you'd get the classes from X no matter what you did.
If you add a library to the CLASSPATH before starting tomcat 3.x - it'll
be used and no webapplication can override or change it.
But this is a configuration choice - if you start tomcat with nothing in
CLASSPATH the webapplication can define anything it wants.
The delegation module ensure that trusted code has preference over
untrusted code, and parent loader has precedence over child loader - if
you want to make sure that a class is loaded with _your_ code and is not
overriden.
Again - the model is fine, the implementation in 3.2 is bad ( because
parser.jar, etc is added to the CLASSPATH before starting tomcat ). The
fix in 3.3 is simple - start tomcat with Main.java ( in the main branch ),
put in CLASSPATH or parent loader ( if you embed tomcat ) what you want to
take precedence and not be overriden, set "useApplicationLoader" option
in the loader interceptor.
( you can also set "useNoParent" option - and the webapps will have the
null parent - i.e. the system class loader, with rt.jar and ext/ in it )
Costin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]