Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

org.hibernate.TransactionException: Unable to locate JTA UserTransaction  RSS feed

 
Sawan Mishra
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,
I am trying to run a sample hibernate program but m getting exception while invoking getTransaction().begin() of session.
exception m getting is:
org.hibernate.TransactionException: Unable to locate JTA UserTransaction


Here is my hibernate configuration file


As per my understanding hibernate needs a transaction for querying database.If transaction snt provided by
third party vendor then it should take by default transaction....
But dont know why this simple program snt working
please help me out


thanks
with regards
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!