Home  >  Forum  >  Hibernate
Post New Query

NoClassDefFoundError: javax/persistence/ManyToOne


joined on
May 23,2013
Asked on May 28,2013
Hellow friends,
I am new to hibernate. Stuck with below error, any clue?

Caused by: java.lang.NoClassDefFoundError: javax/persistence/ManyToOne
at org.hibernate.cfg.AnnotationConfiguration.addPackage(AnnotationConfiguration.java:261)
at com.concretepage.util.HibernateUtil.<clinit>(HibernateUtil.java:22)
Caused by: java.lang.ClassNotFoundException: javax.persistence.ManyToOne
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)

joined on
March 14,2013
Replied on May 28,2013

javax/persistence/ManyToOne belongs to hibernate-jpa-2.0-api-1.0.0.Final.jar, you need to add it in your build path.

Write Answer



Sitewide-Feb4of4234x60





Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us