tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lionel Farbos <lionel.far...@free.fr>
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
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 <skitching@apache.org> 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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message