[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3676?page=c...
]
pioneer commented on HHH-3676:
------------------------------
Caused by: org.hibernate.HibernateException: Unable to locate current JTA transaction
at org.hibernate.context.JTASessionContext.currentSession(JTASessionContext.java:61)
at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:544)
Added up the stack trace with this.
Unable to Load JTA Transaction
------------------------------
Key: HHH-3676
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3676
Project: Hibernate Core
Issue Type: Bug
Components: core
Environment: Hibernate3, Weblogic 9.0
Reporter: pioneer
This is my hibernat.cfg.xml file which i have been using for my app. me trying out an
J2ee Application within an weblogic 9.0 . As my config denotes its exactly true.When
WeblogicTransactionManagerLookup tries to look out for tranaction within JTASessionContext
within currentSession() method , it returns due to the following line.
if(txn == null)
{
throw new HibernateException("Unable to load JTA Transaction);
}
this line didn't allow to proceed within the method to create an new session. Its an
bug with JTASessionContext. Correct me if iam wrong.
<property
name="connection.datasource">jdbc/connectionPool</property>
<property
name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
<property
name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.WeblogicTransactionManagerLookup</property>
<property
name="hibernate.dialect">org.hibernate.dialect.OracleDialect</property>
<property
name="hibernate.current_session_context_class">jta</property>
<property
name="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</property>
<property name="hibernate.cache.use_query_cache">true</property>
<property
name="hibernate.query.factory_class">org.hibernate.hql.ast.ASTQueryTranslatorFactory</property>
<property name="show_sql">true</property>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira