-->
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.  [ 2 posts ] 
Author Message
 Post subject: Hibernate JTA configuration issue with Weblogic 10
PostPosted: Sat Mar 31, 2007 4:18 pm 
Beginner
Beginner

Joined: Wed Jan 03, 2007 7:47 pm
Posts: 23
Location: Richardson, Texas
Hello All,

I am running into a configuration issue with Hibernate 3.2 and Weblogic 10 when trying to use container managed transactions.

I have been researching other similar problems on different versions of Weblogic but none of these suggestions and resolutions have fixed the problem.

I receive the following hibernate exception on startup :

org.hibernate.HibernateException: The chosen transaction strategy requires access to the JTA TransactionManager

Here is the persistence.xml I am currently using :

Code:
<?xml version="1.0" ?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
      http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0">
    <persistence-unit name="VddsPersistenceUnit" transaction-type="JTA">
        <provider>org.hibernate.ejb.HibernatePersistence</provider>
      <jta-data-source>jdbc/VddsDataSource</jta-data-source>
      <mapping-file>META-INF/oe-query.xml</mapping-file>
      <mapping-file>META-INF/reference-query.xml</mapping-file>
      <properties>
          <property name="hibernate.dialect"
             value="org.hibernate.dialect.OracleDialect" />
         <property name="hibernate.show_sql" value="true" />
         <property name="hibernate.format_sql" value="true" />
         <property name="hibernate.jdbc.batch_size" value="50" />
         <property name="hibernate.use_sql_comments" value="true" />
         <property name="hibernate.cache.use_second_level_cache" value="true" />
         <property name="hibernate.cache.read_only" value="true" />
         <property name="hibernate.cache.provider_class"
            value="org.hibernate.cache.EhCacheProvider" />
         <property name="hibernate.generate_statistics" value="true" />
         <property name="transaction.manager_lookup_class"
            value="org.hibernate.transaction.WeblogicTransactionManagerLookup" />
         <property name="transaction.factory_class"
            value="org.hibernate.transaction.JTATransactionFactory" />   
      </properties>
    </persistence-unit>
</persistence>


Any help will be greatly appreciated. I will keep working the issue and will post a solution if I happen to figure out my problem.

Regards,
Kurt


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 02, 2007 11:23 am 
Beginner
Beginner

Joined: Wed Jan 03, 2007 7:47 pm
Posts: 23
Location: Richardson, Texas
Problem resolved, the property name was incorrect as I left off the hibernate prefix.

It should have been declared as :

Code:
         <property name="hibernate.transaction.manager_lookup_class"
            value="org.hibernate.transaction.WeblogicTransactionManagerLookup" />


Regards,
Kurt


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

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.