Hi, I have a problem integrating Hibernate 3 as a MBean inside JBoss 4.0.1
Here is the Exception output I get:
Quote:
org.hibernate.TransactionException: could not register synchronization with JTA TransactionManager
org.hibernate.jdbc.JDBCContext.registerSynchronizationIfPossible(JDBCContext.java:131)
org.hibernate.transaction.JTATransaction.begin(JTATransaction.java:88)
org.hibernate.transaction.JTATransactionFactory.beginTransaction(JTATransactionFactory.java:52)
org.hibernate.jdbc.JDBCContext.beginTransaction(JDBCContext.java:204)
org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1007)
which always happens on one of the two following calls:
Code:
Session session = factory.openSession();
or
Code:
Transaction tx = session.beginTransaction();
this happens fairly frequenltly, using either a JDBCTransactionFactory or
a JTATransactionFactory
It doesn't crash my application (hit "previous" in the web browser, retry, and it works).
I put the following jar in my jboss-hibernate.deployer:
cglib-full-2.0.2.jar
ehcache-1.1.jar
hibernate-3.0.4.jar
jboss-hibernate.jar
odmg-3.0.jar
the application consists of one HAR file (hibernate-service.xml, *.hbm.xml, POJOs) and a WAR file.
Hopping you will be more inspired than me,
thank you in advance.