persistence@glassfish.java.net

Re: Hibernate in Glassfish

From: Peter Havelaar <peter-java_net_at_jabbah.net>
Date: Tue, 12 Sep 2006 19:12:27 +0200

At the moment I am using:
jrockit-1.5.0

Regards,
Peter

----- Original Message -----
From: "Marina Vatkina" <Marina.Vatkina_at_Sun.COM>
To: <persistence_at_glassfish.dev.java.net>
Sent: Tuesday, September 12, 2006 6:34 PM
Subject: Re: Hibernate in Glassfish


Hi Peter,

We saw this type of strange errors with some versions of jdk 6. Which one
are you using?

thanks,
-marina

Peter Havelaar wrote:
> Hi guys,
>
> I do not know if this is the appropriate place to ask, but I tried to
> access the forum and sees me as a guest when I login and am unable to
> post a topic.
>
> I am trying to use Hibernate with glassfish and have placed the jar
> files of hibernate-core, hibernate-entitymanager and
> hibernate-annotations in the glassfish/lib directory. In the lib
> directory I have also put the depending jars for hibernate-core, amongst
> which: cglib-2.1.3.jar, but still I get
> java.lang.NoClassDefFoundError: net/sf/cglib/proxy/Enhancer
> when I try to start the domain. This is strange because unzip -l
> cglib-2.1.3.jar | grep Enhancer shows the class file is there.
> This must be some kind of classloader conflict, but all the jars are in
> glassfish/lib.
> How can I get this to work?
>
> Thanks in advance.
>
> Peter Havelaar
> Jabbah.net
>