[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-2317) CGLIB unable to lazy load classes in diff. classloader than hibernate jars

Pietu Pohjalainen (JIRA) noreply at atlassian.com
Tue Jan 15 07:16:55 EST 2008


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pietu Pohjalainen updated HHH-2317:
-----------------------------------

    Attachment: hibernate-3.1.patch

Here's a patch against hibernate 3.1.3, which changes the order of interfaces so that the class HibernateProxy is located as the last one. 
This way, when the cglib enhancer selectes the classloader, it chooses the POJO's classloader instead of HibernateProxy's classloader.
This fixed my error where the hibenate classes were located at web server common libraries, and POJOs in the web application itself.

This problem seems to be present in hibernate 3.2.5ga as well; I guess that this fix would also apply there.

>  CGLIB unable to lazy load classes in diff. classloader than hibernate jars
> ---------------------------------------------------------------------------
>
>                 Key: HHH-2317
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2317
>             Project: Hibernate3
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.2.1
>            Reporter: Jason Novotny
>         Attachments: hibernate-3.1.patch
>
>
> Please see http://forum.hibernate.org/viewtopic.php?p=2334617#2334617 for more details and possible fix

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list