tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ziggy <zigg...@gmail.com>
Subject Re: dbcp error with java.lang.ClassCastException: org.apache.tomcat.dbcp.dbcp.PoolingDataSource
Date Thu, 09 Oct 2008 16:53:04 GMT
Hi,

I originally only had it on $TOMCAT_HOME/common/lib but it didnt work.
I only put it on both locations to test it out.

I have now removed the copy from $APPLICATION_ROOT_DIR/WEB-INF/lib/ and i
still have the same problem described below.

Thanks


On Thu, Oct 9, 2008 at 5:35 PM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: Ziggy [mailto:ziggy25@gmail.com]
> > Sent: 2008 October 09, Thursday 11:12
> > org.apache.tomcat.dbcp.dbcp.PoolingDataSource
> >
> > I have placed the jdbc driver on both the following directories
> > [code]
> > $TOMCAT_HOME/common/lib/
> > $APPLICATION_ROOT_DIR/WEB-INF/lib/
>
> > [/code]
>
> Never, never, never put the same class(es) in more than one location in a
> given branch of the classloader tree.
>
> Since you're using Tomcat to manage the DB connection pool, the .jar file
> containing the JDBC driver classes must be placed in common/lib.
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you received
> this in error, please contact the sender and delete the e-mail and its
> attachments from all computers.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

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