NoClassDefFoundError: javax/transaction/Synchronization

Exception in thread "main" java.lang.NoClassDefFoundError: javax/transaction/Synchronization
 at org.hibernate.impl.SessionFactoryImpl.buildCurrentSessionContext(SessionFactoryImpl.java:1036)
 at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:366)
 at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
 at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
 at com.yin.hibernate.model.GuestBookTest.main(GuestBookTest.java:10)

解决方法:
引入:jta.jar

你可能感兴趣的:(生活,职场,休闲)