Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

transaction package Synchronization inteface

 
Rahul Shilpakar
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am going through on program i got an exception as follows:



i tried downloading various Jars. but i am not getting that particular jar which has Synchronization class/interface in any pacakge like transaction.

When i try to import javax.transaction.(Here i couldn't find any Synchronization Class/Interface)

The Synchronization interface is not present under the transaction package

What am i supposed to do now. Where can i get it. help me.
 
Campbell Ritchie
Sheriff
Pie
Posts: 48968
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not in my Java 6 API; have you tried the J2EE documentation? You might have to install J2EE as well as the standard edition.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://www.hibernate.org/116.html#A2
 
Rahul Shilpakar
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have gone through all suggestions you have told. I am not getting through it. Is there any way to avoid J2EE installation and still get Synchronization interface?
 
Rahul Shilpakar
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any other way to get Synchronization interface?
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does the "lib/README.txt in the Hibernate distribution" say?
 
Rahul Shilpakar
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have only jar of hibernate-2.1.3 and when i extract this jar file and i havn't find any lib directory in it.

Where can i read this README.txt file? And what significant point i can achive from it?
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you said that you had gone through all the suggestion, I assumed that you also had read the the FAQ entry I linked to, just before that post. There it says:


You are missing a third-party library Hibernate needs, check lib/README.txt in the Hibernate distribution first. You need all classes that are listed as required for runtime.
 
Rahul Shilpakar
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I gone through the FAQ of hibernate but havn't find the relative information regarding hibernate distribution.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic