-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: transaction registration error
PostPosted: Mon Jun 20, 2005 8:52 am 
Newbie

Joined: Mon Jun 20, 2005 8:37 am
Posts: 2
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.