[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2317) CGLIB unable to lazy load classes in diff. classloader than hibernate jars
Jason Novotny (JIRA)
noreply at atlassian.com
Tue Dec 19 23:21:05 EST 2006
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2317?page=comments#action_25673 ]
Jason Novotny commented on HHH-2317:
------------------------------------
My test case is a bit complex. I'm using Tomcat and I have my hibernate libs in the WEB-INF/lib of my web application. However I have a "service factory" that lives in the Tomcat shared/lib classpath which maintains an instance of my hibernate persistence wrapper. The persistence wrapper passes itself to the service factory along with its classloader. Now in web application B, I get an instance of my persistence wrapper and I use it to load in the hibernate mapping files in webapp B. As long as lazy="false" it works fine. Otherwise if lazy is true, I get this stack trace:
net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:237)
at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377)
at net.sf.cglib.proxy.Enhancer.createClass(Enhancer.java:317)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:121)
at org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43)
> 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
> Type: Bug
> Components: core
> Versions: 3.2.1
> Reporter: Jason Novotny
>
>
> 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