Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

org.hibernate.TransactionException: Unable to locate JTA UserTransaction

 
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
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!