readthefuckingmanual.net

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

Error added: 2008-06-08T15:37:20Z

2 people waiting for the answer...

2 answers found.

Answer 920 (28.571428% helpful)

Add RESOURCE_LOCAL to the persistence AND add non-jta-data-source
EXAMPLE:
<persistence-unit name=\"monkey\" transaction-type=\"RESOURCE_LOCAL\">
<non-jta-data-source>java:/DefaultDS</non-ta-data-source>
<properties>
<property name=\"hibernate.hbm2ddl.auto\" value=\"create-drop\" />
</properties>
</persistence-unit>
Permalink

Answer 919 (0.0% helpful)

Try adding:
transaction-type=\"RESOURCE_LOCAL\"
to the <persistence-unig> entry
For Example:
<persistence-unit name=\"HI_THERE\" transaction-type=\"RESOURCE_LOCAL\">
Permalink

Add an answer/solution

If you know the answer, please add your own solution below.
If you don't know, but find out later, please come back and share your answer - there will be other people struggling with this too.


Please enter 61948 here

If you want to be notified via email when this is solved, enter your email address here: