INFO: building session factory
Mar 12, 2009 6:10:52 PM org.hibernate.impl.SessionFactoryObjectFactory addInstance
INFO: Not binding factory to JNDI, no JNDI name configured
Exception in
thread "main" java.lang.NoClassDefFoundError: javax/transaction/Synchronization
at org.hibernate.impl.SessionImpl.<init>(SessionImpl.java:212)
at org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:442)
at org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:466)
at org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:474)
at Main.main(Main.java:19)
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)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 5 more
Thanks,
Sivakumar.