Friday, 27 September 2013

Derby authentication fails with JPA project

Derby authentication fails with JPA project

Environment
A fresh install of :
Eclipse Kepler
GlassFish 3.1.2.2
Problem
I want to deploy a JPA web project to GlassFish. I have set up the
appropriate JDBC connection pool and resource to access a MySQL database.
I can ping both my pool and DerbyPool. I am also able to connect to Java
DB from inside Eclipse. However when I try to deploy my project, I get:
WARNING: RAR5038:Unexpected exception while creating resource for pool
DerbyPool. Exception : javax.resource.spi.ResourceAllocationException:
Connection could not be allocated because: Connection authentication
failure occurred. Reason: userid or password invalid.
WARNING: RAR5117 : Failed to obtain/create connection from connection pool
[ DerbyPool ]. Reason :
com.sun.appserv.connectors.internal.api.PoolingException: Connection could
not be allocated because: Connection authentication failure occurred.
Reason: userid or password invalid.
WARNING: RAR5114 : Error allocating connection : [Error in allocating a
connection. Cause: Connection could not be allocated because: Connection
authentication failure occurred. Reason: userid or password invalid.]
What could be the problem?

No comments:

Post a Comment