users@glassfish.java.net

MySQL Connection pool in Glassfish V2

From: <glassfish_at_javadesktop.org>
Date: Tue, 12 Aug 2008 18:11:44 PDT

I can connect to the DB in all manner except when in a Connection Pool backed JNDI JDBC resource.

Here is the Connection Pool in the domain.xml

                <jdbc-connection-pool allow-non-component-callers="false" associate-with-thread="false" connection-creation-retry-attempts="0" connection-creation-retry-interval-in-seconds="10" connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0" connection-validation-method="auto-commit" datasource-classname="com.mysql.jdbc.jdbc2.optional.MysqlDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="false" lazy-connection-association="false" lazy-connection-enlistment="false" match-connections="false" max-connection-usage-count="0" max-pool-size="32" max-wait-time-in-millis="60000" name="proxibid-mysql" non-transactional-connections="false" pool-resize-quantity="2" res-type="javax.sql.ConnectionPoolDataSource" statement-timeout-in-seconds="-1" steady-pool-size="8" validate-atmost-once-period-in-seconds="0" wrap-jdbc-objects="false">
                        <property name="URL" value="jdbc:mysql://:3306/databasename"/>
                        <property name="user" value="user"/>
                        <property name="password" value="password"/>
                </jdbc-connection-pool>
When a Toplink session attempts to connect the following error is recorded:

RAR5114 : Error allocating connection : [Error in allocating a connection. Cause: No PasswordCredential found]

I am wracking my brain on this. I have tried ever possible combination to no avail.

Help!!
[Message sent by forum member 'slepage01' (slepage01)]

http://forums.java.net/jive/thread.jspa?messageID=292929