Hibernate in GlassFish - Reloaded

This is a recurring question on the GlassFish forums and mailing lists: "How do can I use Hibernate as a JPA provider in GlassFish?". Mitesh has had this post on the subject up for a little while (some more here) but with the recent release of Hibernate 3.4 made it a little trickier to integrate into GlassFish (NoClassDefFoundError of ReflectionManager seems like a common pattern). Sun's Marina Vatkina has provided an updated list of the JARs needed in the glassfish/lib directory to run Hibernate in GlassFish v2 as a comment to Mitesh's post.

For the record, here are the JAR files required from hibernate-entitymanager-3.4.0.GA and hibernate-distribution-3.3.1.GA :
• antlr-2.7.6.jar
• commons-collections-3.1.jar
• dom4j-1.6.1.jar
• ejb3-persistence.jar
• hibernate-annotations.jar
• hibernate-commons-annotations.jar
• hibernate-entitymanager.jar
• hibernate3.jar
• javassist.jar
• jta-1.1.jar
• log4j.jar
• slf4j-api-1.5.2.jar
• slf4j-log4j12.jar
(from hibernate-entitymanager-3.4.0.GA/lib/test).

Comments:

Does this list also apply to glassfish v3?

Posted by wayne townsend-merino on novembre 14, 2008 at 11:02 AM CET #

It should. Please report back if it's not. Thanks.

Posted by Alexis MP on novembre 14, 2008 at 01:20 PM CET #

The list applies to both V2 and V3.

Posted by Mitesh Meswani on novembre 17, 2008 at 04:39 AM CET #

Post a Comment:
Comments are closed for this entry.
About

This blog has moved

Alexis Moussine-Pouchkine's Weblog

GlassFish - Stay Connected

Search

Archives
« avril 2014
lun.mar.mer.jeu.ven.sam.dim.
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today
Blogroll

No bookmarks in folder

News

No bookmarks in folder