users@glassfish.java.net

Re: Hibernate 3.6.0

From: Richard Kolb <rjdkolb_at_gmail.com>
Date: Wed, 27 Oct 2010 15:08:53 +0200

Hi Harald

On 27 October 2010 12:09, <glassfish_at_javadesktop.org> wrote:

> Hi Ronak,
>
> I don't know about the "Hibernate JPA Provider" you mentioned - is that an
> add-on you installed via the Update Center?
>
> Anyway, I used to work with several 3.5.x versions of Hibernate on
> Glassfish, and I simply let Maven include Hibernate and all dependent
> libraries in my WAR file.
>
> Using Hibernate on Glassfish 3.0.1, you may run into the following
> problems:
>
> 1) Your app may cause memory leaks on redeployment due conflicting usage of
> the javasisst bytecode provider used both by Weld (CDI) and Hibernate. See
> https://glassfish.dev.java.net/issues/show_bug.cgi?id=12368
>
> Using cglib as bytecode provider for Hibernate by adding the following line
> to your domain.xml may solve the problem:
>
> <jvm-options>-Dhibernate.bytecode.provider=cglib</jvm-options>
>

thanks for this.
I am using GlassFish 2.1.0 , obviously there is no Weld.

I am using Hibernate and javassist in my project.
Hibernate is not installed in the domains lib


        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate</artifactId>
            <version>3.2.6.ga</version>
        </dependency>
    <dependency>
        <groupId>javassist</groupId>
        <artifactId>javassist</artifactId>
        <version>3.4.GA</version>
    </dependency>

Is there something I should worry about in this case ?

regards
Richard.