tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 50025] getConnection method in class DataSourceProxy is ignoring credentials
Date Fri, 22 Oct 2010 14:29:31 GMT

--- Comment #3 from Tim <> 2010-10-22 10:29:26 EDT ---
(In reply to comment #2)
> Do you have a code example to show how you receive this error? Or perhaps even
> a JUnit test?

Take a look at the source code for getConnection.  It was included in a reply
to my original post in the forums (reproduced below).

This is an issue with the new jdbc-pool implementation, it internally always
uses the default configured username/password. I suggest raising a bug on the
tomcat(jdbc-pool) issue tracker.

The actual code.
public class DataSourceProxy implements PoolConfiguration {

     * {@link javax.sql.DataSource#getConnection()}
    public Connection getConnection(String username, String password) throws
SQLException {
        return getConnection();


Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

View raw message