Exception:
java.lang.ClassNotFoundException: javax.transaction.Synchronization
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at org.hibernate.impl.SessionImpl.(SessionImpl.java:248)
at org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:627)
at org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:651)
at org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:659)...
Reason :
you have not included jta.jarPossible solution :
- Download jta.jar from http://mvnrepository.com/artifact/javax.transaction/jta
and include it in library.
<dependency> <groupId>javax.transaction</groupId> <artifactId>jta</artifactId> <version>1.1</version> </dependency>