• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Not binding factory to JNDI, no JNDI name configured

 
Sakthi Siva
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
Vikas Kapoor
Ranch Hand
Posts: 1374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unknown Unknown,

Please adhere Naming Policy( http://www.javaranch.com/name.jsp) of JavaRanch. Your signature tells your name is Siva Kumar. Change your display name accordingly.

Coming to your problem,
Do you have jta.jar(Java Transaction Api) in your classpath?
 
Vikas Kapoor
Ranch Hand
Posts: 1374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
... And Welcome to JavaRanch!
 
Sakthi Siva
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vishal,

It working fine. Thanks for your reply.


Thanks,
Siva.
 
Vikas Kapoor
Ranch Hand
Posts: 1374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nice to Hear!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic