java.lang.NoClassDefFoundError: javax/transaction/Synchronization




Asked on May 20, 2013
Hi Friends,

I am new to Hibernate. Any clue for below error?

Exception in thread "main" java.lang.NoClassDefFoundError: javax/transaction/Synchronization
at org.hibernate.impl.SessionImpl.<init>(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)
at com.concretepage.util.HibernateUtil.getSession(HibernateUtil.java:35)
at com.concretepage.util.HibernateUtil.main(HibernateUtil.java:39)
Caused by: java.lang.ClassNotFoundException: javax.transaction.Synchronization
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 6 more




Replied on May 20, 2013
javax/transaction/Synchronization belongs to the jar jta. You need to add jta-1.1.jar or upper version in your classpath application.



Write Answer











©2024 concretepage.com | Privacy Policy | Contact Us