commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [DBCP 1.1] DataSource.getConnection(usr, pwd): Cannot create Pool ableConnectionFactory
Date Wed, 03 Dec 2003 15:47:59 GMT
The method BasicDataSource.getConnection(String username, String password)
is now implemented, but using it (from Tomcat 4.1.29, DBCP 1.1, Pools 1.1)
raises an SQLException. The JDBC driver complains about not having got the
user credentials. Seems like username and password aren't passed internally
(or have I done anything wrong?). 

BTW: putting the credentials into Tomcat's server.xml and using
getConnection() works, but using getConnection(with params) throws an
UnsupportedException in PoolingDataSource.getConnection().

Any workaround? I need to provide the credentials at runtime to avoid
storing them in the server.xml (unencrypted!).

Thanks for any help!

Michael Bellinger

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

View raw message