Cosmos wrote:
Hello,
I'm a new user, I use Hibernate 3.0, and I'm trying to make the Hibernate setup(P13 in the doc) and I get the following error message:
Initial sessionFactory creation failed.java.lang.NoClassDefFoundError: javax/transaction/Synchronization
The error is when the program is trying to create a new Configuration() (I've splited the sessionFactory declaration to check where the problem happens but otherwise, the code is the same as HibernateUtil).
...
I have no idea why it doesn't work, anyone has an idea why?
thanks
you need the jta.jar in your classpath. Make sure you read the docs for all required libraries. There is a _README.TXT file in the lib directory of the hibernate distribution.