Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004908 [Resin] minor always 12-27-11 12:13 11-11-14 15:42
Reporter alex View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 4.0.24
Summary 0004908: Spring / Persistence integration
Description Resin4.0.24 always deploys persistence unit when it starts
Resin4.0.24 always deploys persistence unit when it starts since it integrated with eclipselink 2.3.0. However I use Spring in my web application and set datasource to LocalContainerEntityManager which will be set to PersistenceUnitInfo as nonJtaDataSource, all of this will be done after resin started thus Spring cannot update persistenceUnitInfo anymore and I got such error when retrieving data from MySql Database:

Exception [EclipseLink-4021] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.DatabaseExcepti on
Exception Description: Unable to acquire a connection from driver [null], user [null] and URL [null]. Verify that you have set the expected driver class and URL. Check your login, persistence.xml or sessions.xml resource. The jdbc.driver property should be set to a class that is compatible with your database platform
at org.eclipse.persistence.exceptions.DatabaseExcepti on.unableToAcquireConnectionFromDriverException(Da


Because I use database connection pool, I moved the database related settings to spring's configuration file, so the persistence.xml has no database connection settings.
Additional Information
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
12-27-11 12:13 alex New Issue
05-14-14 02:03 th Issue Monitored: th
11-11-14 15:42 ferg Assigned To  => ferg
11-11-14 15:42 ferg Status new => closed
11-11-14 15:42 ferg Resolution open => fixed
11-11-14 15:42 ferg Fixed in Version  => 4.0.42

Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker