Hi,
I'm using Hibernate 3 and my persisted classes are located in the shared classloader of Tomcat, while the cglib jar is in the WEB-INF/lib of my webapp. It looks like I'm getting this error
org.hibernate.HibernateException: CGLIB Enhancement failed: org.gridsphere.services.core.security.role.PortletRole
at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:132)
as a result.
Is there some way in Hobernate props file to tell CGLIB to use the default webapp classloader so that it first checks in WEB-INF/lib but can also use the webapp shared classpath?
Thanks, Jason
|