You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by "Dong, Lily/Sloan-Kettering Institute" <do...@MSKCC.ORG> on 2004/03/09 17:44:36 UTC

DBCP Connection.getDelegate () class cast problem

Hi.

After updating tomcat to 5.0,  part of our system stopped working.  Looked
at the source code and found out the line

((PoolableConnection)conn_l).getDelegate()

caused java.lang.ClassCastException exception.  But the same code works fine
for Tomcat 4.1.

Any idea what went wrong?

Thanks,
Lily



Re: DBCP Connection.getDelegate () class cast problem

Posted by Dirk Verbeeck <di...@pandora.be>.
A little more info is needed:

Version of DBCP and exact tomcat versions?
Do you have a DBCP jar in the WEB-INF/lib directory of your 
application or only in tomcat/common/lib?
Do you create your own pool or use JNDI? (context configuration?)

-- Dirk

Dong, Lily/Sloan-Kettering Institute wrote:
> Hi.
> 
> After updating tomcat to 5.0,  part of our system stopped working.  Looked
> at the source code and found out the line
> 
> ((PoolableConnection)conn_l).getDelegate()
> 
> caused java.lang.ClassCastException exception.  But the same code works fine
> for Tomcat 4.1.
> 
> Any idea what went wrong?
> 
> Thanks,
> Lily
> 
> 



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