I'm getting problem in EclipseLink and glassfish I'm try to create datasource using Spring and then creating LocalContainerEntityManagerFactoryBean via xml file and added all models in persistence.xml but not adding any connection setting in it, but when I'm try to deploy the app its connecting default to derby db and throwing exception:
Severe: Exception while deploying the app [MyWebApp] : Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused: connect.
Error Code: 0
Kindly help me about this.
Thanks in advance
Aucun commentaire:
Enregistrer un commentaire