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
but,
in some wars, I have
WEB-INF/lib/mysql-connector-java-3.0.15-ga-bin.jar
WEB-INF/lib/naming-factory-dbcp.jar
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
and
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" />
or
<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 :
dataSource.getClass().getClassLoader().getResource("org/gjt/mm/mysql/Driver.class");
Cheers
On Sat, 19 Mar 2005 17:44:40 +1300
Simon Kitching <[EMAIL PROTECTED]> 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:
> http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/loader.html
>
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]