On Dec 22, 2008, at 12:34 AM, Maxime Thieu wrote:
Hello,
I am using OpenEJB3.1 in Tomcat with JPA and Hibernate 3.3 as
provider.
It works well, but when an persistence exception occurs (originaly
thrown by
Hibernate, for exemple, Constraint violation), the visible Exception
is :
javax.ejb.EJBTransactionRolledbackException: Transaction was rolled
back,
presumably because setRollbackOnly was called during a synchronization
With no indication of the Hibernate Exception (whereas with Spring
framework, the original Hibernate cause is visible)
Is there any way to configure the Transaction Manager to have the
original
cause (Hibernate Exception) in logs ?
Hi Maxime,
This response would intended for you as well:
http://www.nabble.com/Catching-OpenJPA-validation-exceptions-in-OpenEJB-to21146938.html
You Geoff and Luis make three requests in the last week for this.
We'll definitely have to figure something out here.
-David