I have an application that is using Spring 3.0.2 and Hibernate 3.5.3 throwing a strange error, but only on the production server! The application uses both a JPA transaction manager and a JDBC transaction manager. The JPA Entities are marked with the @Persistence and @PersistenceUnit annotations. Attached are my config files for the database and related entity managers. I can't for the life of me understand how this is only happening in one environment. The environment that this is not working in was "cloned" from an environment that does work.
Any/all replies appreciated!
Code:org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is java.lang.IllegalStateException: Already value [org.springframework.jdbc.datasource.ConnectionHolder@e7c8865] for key [org.apache.tomcat.dbcp.dbcp.BasicDataSource@52a53948] bound to thread [http-10.12.15.69-8080-1] at org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:382) at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:371) at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:317) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:105) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:625) at com.donaldson.pw.service.impl.SystemInfoServiceImpl$$EnhancerByCGLIB$$17708490.getSystemInfo(<generated>)


Reply With Quote
