-->
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.  [ 1 post ] 
Author Message
 Post subject: hot to configure cglib to find classes in app serv classpath
PostPosted: Sat Oct 14, 2006 1:09 am 
Beginner
Beginner

Joined: Sun May 02, 2004 8:04 am
Posts: 36
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


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

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.