users@glassfish.java.net

Re: java.lang.ClassNotFoundException: org.hibernate.ejb.HibernatePersistenc

From: <glassfish_at_javadesktop.org>
Date: Sun, 06 Dec 2009 03:13:33 PST

Thank you Sean,

I had to install these jars in glassfish-v3-b74\glassfish\lib :

antlr-2.7.6
asm-1.5.3
asm-attrs-1.5.3
cglib-2.1_3
commons-collections-2.1.1
commons-logging-1.0.4
dom4j-1.6.1
ejb3-persistence-1.0.1.GA
hibernate-3.2.5.ga
hibernate-annotations-3.3.1.GA
hibernate-commons-annotations-3.0.0.ga
hibernate-entitymanager-3.3.2.GA
javassist-3.4.GA
jta-1.0.1B

Now it works with my maven project.
However all of these jars are included in my ear but are not found by Glassfish.

If I create an Enterprise Application without maven and with the Netbeans wizard, I don't have to add all the previous jars. It's weird!
[Message sent by forum member 'deebak' ]

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