-->
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: Hibernate current transaction is not in progress
PostPosted: Wed Oct 03, 2012 3:44 am 
Newbie

Joined: Sun Sep 30, 2012 9:04 am
Posts: 1
Hello,

After Migrating an Application J2EE from JDK 1.4 to JDK6, WAS6.1 to WAS7, EJB2 to EJB3 (Ejb session: persistence with Hibernate3.2 : No JPA); An Error is blocking transaction to an DB Oracle (We use JTA).

Error traced : "Current transaction is not in progress".

This error is occured when we tray to instanciate/recupere current session hibernate from SessionFactory:

sessionFactory.getCurrentSession();

Extract of file config Hibernate.cfg.xml:

<hibernate-configuration>
<session-factory>
<property name="session_factory_name">Mgb/HibernateFactory</property>
<property name="show_sql">false</property>
<property name="connection.datasource">jdbc/mgb</property>
<property name="dialect">org.hibernate.dialect.Oracle10gDialect</property>
<property name="hibernate.jta.UserTransaction">java:comp/UserTransaction</property>
<property name="hibernate.current_session_context_class">org.hibernate.context.JTASessionContext</property>
<property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
<property name="hubernate.transaction.manager_lookup_class">org.hibernate.transaction.WebSphereExtendedJTATransactionLookup</property>
. .
</session-factory>
<hibernate-configuration>

Do you have any idea which could be the issue ?
Thanks in advance

RAN


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.