We're currently using openjpa 2.2.1 with Glassfish 3. Since we have to make changes to our infrastructure anyway, we're considering upgrading to Glassfish 4. Unfortunately, I can't get OpenJpa to work with it. Whenever I try to access a Entity I get AbstractMethodErrors
Caused by: java.lang.AbstractMethodError: org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(Ljavax/persistence/SynchronizationType;Ljava/util/Map;)Ljavax/persistence/EntityManager;
(that is if I enhance the classed during build time with the openjpa-maven-plugin). If I use dynamic enhancement, I can't even deploy the app.
If I switch the persistence provider to EclipseLink, it seems to work fine. Unfortunately changing the persistence provider is not really an option as we use some OpenJPA-Features.
I tried OpenJpa 2.2.2 as well with the same result. On Glassfish 3 the same thing runs just fine.