1. Hibernate JPA - java.lang.NoClassDefFoundError: javax/persistence/Persistence coderanch.comHi, this is my first application in Hibernate JPA, I created 2 projects in eclipse 1) daks - it's a tomcat based web application 2) jpatest - JPA project in hibernate plate form. Then, I included jpatest project into my web project java module dependency path. I included all the below hibernate jars into jpa project- jpatest classpath. Please look at ... |
2. java.lang.NoClassDefFoundError: javax/persistence/EntityMana forum.hibernate.orgjava.lang.NoClassDefFoundError: javax/persistence/EntityManager EJB is compiled , deployed, being called successfuly the first business method. When I use em I am getting this error. I even included javas.persistence.* replated jars to my project EAR. imports import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; Em initiated @PersistenceContext private EntityManager em; em refered if (em.isOpen()) { System.out.println("I am open"); } else { System.out.println("I am not open"); } thx ... |