-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: How do I specify CGLIB and not JAVASSIST?
PostPosted: Mon Sep 14, 2009 12:38 pm 
Newbie

Joined: Mon Sep 14, 2009 12:34 pm
Posts: 4
How do I specify CGLIB and not JAVASSIST?
I have
the following properties:

Code:
<properties>
            <property
                name="hibernate.connection.datasource"
                value="java:/MailingPlatformDS" />
            <property
                name="hibernate.dialect"
                value="org.hibernate.dialect.MySQLDialect" />
            <property
                name="hibernate.connection.driver_class"
                value="org.gjt.mm.mysql.Driver" />
            <property
                name="hibernate.connection.url"
                value="jdbc:mysql://localhost:3306/mailingPlatform?autoReconnect=true&amp;noAccessToProcedureBodies=true" />
            <property
                name="hibernate.connection.username"
                value="root" />
            <property
                name="hibernate.connection.password"
                value="aam2" />
            <property
                name="hibernate.connection.provider_class"
                value="org.hibernate.connection.DatasourceConnectionProvider" />
            <property
                name="hibernate.transaction.manager_lookup_class"
                value="org.hibernate.transaction.JBossTransactionManagerLookup" />
            <property
                name="hibernate.transaction.flush_before_completion"
                value="true" />
            <property
                name="hibernate.transaction.auto_close_session"
                value="true" />
[b]             <property
                name="hibernate.bytecode.provider"
                value="cglib" />
[/b]
        </properties>
    </persistence-unit>



Is there any other place where I need to specifiy this?

The error I am getting is:

Can not set static javassist.util.proxy.MethodFilter field com.aam2.sky.beans.Role_$$_javassist_0._method_filter to org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer$1


Top
 Profile  
 
 Post subject: Re: How do I specify CGLIB and not JAVASSIST?
PostPosted: Mon Sep 14, 2009 2:32 pm 
Newbie

Joined: Mon Sep 14, 2009 12:34 pm
Posts: 4
It works now. I have to remove the javassist.jar file.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.