Category: openjpa

java.lang.NoClassDefFoundError: org/apache/openjpa/enhance/PersistenceCapable

My current project is using JPA, heavily. JPA is a spec/standard/interface and I'm using the Hibernate implementation for it, but I import the entities from a different maven module. The entities module has a dependency on JPA, but not on Hibernate. So when I run my unit tests, I suddenly get a:java.lang.NoClassDefFoundError: org/apache/openjpa/enhance/PersistenceCapableOpenjpa? Where does … Continue reading java.lang.NoClassDefFoundError: org/apache/openjpa/enhance/PersistenceCapable