commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Hufgard <>
Subject Re: Using jndi to get a DBCP BasicDataSource give ClassCastException
Date Mon, 06 Mar 2006 16:51:18 GMT
Hello Vijay,

> I am trying to cast datasource to BasicDataSource and getting a
> classcastException during runtime. I tried to output .getClass().getName()
> from the datasource to see what it
> thinks I see basicDataSource. I found the following link which is exactly my
> problem. Any ideas?

On the first look, this might be a Classloader issue. Where do you
have your libraries placed? Maybe you have duplicate classes in the
servers library dir an in WEB-INF/lib?

Best regards,

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

View raw message