commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dirk Verbeeck <>
Subject Re: [dbcp] strange error
Date Tue, 15 Jun 2004 17:35:35 GMT
Are you getting a BasicDataSource from tomcat using JNDI or are you 
creating your own BasicDataSource?

The best place to put your driver is next to the dbcp jar.

It's a strange error message, but that's normal with classloader 
issues ;-)

-- Dirk

Guy Katz wrote:

> is anyone familiar with this exception.
> i found some threads discussing this but did not understand.
> my situation is that the i am using tomcat 5.0.12+mysql+ data source
> configured on tomcat in my application scope.
> at first i did not have the connector-j (driver) jar anywhere. i got a good
> message stating "Cannot load JDBC driver class 'com.mysql....'"
> now, i have the connector-j in my web-inf\lib and i get this which is
> slightly different. due to the fact that the message is different i fear
> that the driver was loaded and that this is another problem.
> i know this jar should be in the common/lib but due to a shared hosting
> environment i am trying other places to put it first.
> can this be a problem caused by the fact that the jar is not on the
> common/lib? how come the message changed when i put the jar is the
> web-inf/lib?
> thanks in advance.

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

View raw message