users@glassfish.java.net

Re: PersistenceUnit glasfishV3.0.1

From: <glassfish_at_javadesktop.org>
Date: Tue, 20 Jul 2010 06:18:59 PDT

Your persistence.xml defines Hibernate to be the persistence provider. Then why do you deploy OpenJPA plus Hibernate?

If I'm not mistaken openjpa-all contains all dependencies of OpenJPA, including the javax.persistence API, which may cause a class cast conflict with another copy of this API contained in Glassfish.

If you'd like to deploy OpenJPA to your Glassfish server, try openjpa (not openjpa-all). Maven will help you in getting the dependencies right.

Regards,

Harald
[Message sent by forum member 'hwellmann']

http://forums.java.net/jive/thread.jspa?messageID=478080