tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lionel Farbos <>
Subject Re: bug with Delegate ?
Date Wed, 23 Mar 2005 16:26:34 GMT
Hi Simon,

I wanted to use this flag because, in my $CATALINA_HOME/common/lib,
I have mysql-connector-java-2.0.14-bin.jar
in some wars, I have 
and in other wars, I don't have any Driver Mysql

So, I'd want the war_WEB-INF/lib/<Mysql_jar> to be taken BEFORE the common/lib/<Mysql_jar>
one when it is possible
the common/lib/<Mysql_jar> to be taken in other cases.

So I tried to put 
<Loader className="org.apache.catalina.loader.WebappLoader" delegate="false" />
<Loader className="org.apache.catalina.loader.WebappLoader" delegate="true" />
in my Context.xml
But it is always the common/lib/jar one which is taken :-((

I don't know if it is a bug or a bad config from me ....

If a Tomcat Developer can say to me what I am wrong ...

Note : To confirm the Driver version, I print :

On Sat, 19 Mar 2005 17:44:40 +1300
Simon Kitching <> wrote:

> Hi,
> I see here that there is an option for the webapp-specific classloader
> to use parent-first classloading instead of the (default) child-first
> classloading.
> Can someone suggest why this might be useful? Clearly someone thought
> so, but I can't see any point in it. It is in catalina since version 1.1
> (committer: Remy Maucherat).
> See "delegate" option in this page:
> Using this option makes life exceedingly complicated for some libs like
> commons-beanutils and commons-logging, so I would like to know under
> what conditions someone might enable this feature.
> Regards,
> Simon
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message