We're using hibernate with Glassfish. You could either put required hibernate in your gf lib directory or, as we do, together with your application in an ear file. Then just add the following line within the persistence-unit element in your persistence xml file: <provider>org.hibernate.ejb.HibernatePersistence</provider> Remember to specifiy jta-data-source and add the datasource in gf.
[Message sent by forum member 'woel' (woel)]
http://forums.java.net/jive/thread.jspa?messageID=257003