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