commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vijay Anjur" <vijay.an...@gmail.com>
Subject Re: Using jndi to get a DBCP BasicDataSource give ClassCastException
Date Mon, 06 Mar 2006 16:58:43 GMT
Hi Christian,
  You are right. The problem was I had duplicates in the WEB-INF/lib.I can't
tell you how long I spent trying to figure this out and I can't thank you
enough for your quick response.

Thanks you very very very much!!!!!!!!!!!!!!

On 3/6/06, Christian Hufgard <christian.hufgard@gmx.de> wrote:
>
> 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,
> Christian                            mailto:christian.hufgard@gmx.de
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message