I have followed the same procedure with the versions:
glassfish: V1 b48
hibernate-core: 3.2 cr2
hibernate-em: 3.2.0 cr1
hibernate-ann: 3.2.0 cr1
Regards,
Peter
----- Original Message -----
From: "Mitesh Meswani" <Mitesh.Meswani_at_Sun.COM>
To: <persistence_at_glassfish.dev.java.net>
Sent: Tuesday, September 12, 2006 7:52 PM
Subject: Re: Hibernate in Glassfish
Hi Peter,
Can you try switching to JDK 5 to narrow down the problem?
I was able to get it working with the steps mentioned here
(
http://blogs.sun.com/GlassFishPersistence/#use_hibernate_as_a_persistence)
Thanks,
Mitesh
Peter Havelaar wrote:
> 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
>>
>>