-->
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: Switching off GCLib to get a better error msg
PostPosted: Tue Sep 28, 2004 3:08 pm 
Newbie

Joined: Tue Sep 28, 2004 3:02 pm
Posts: 2
Hi,

I get an exception when running schemaexport after I tried adding a @hibernate.component tag to a class. I saw a post that you can get a better stack trace to help find the cause by turning off the GCLIB reflection optimizer, so jus wondering how to go about this

Cas

Exception in thread "main" java.lang.NoClassDefFoundError: net/sf/cglib/beans/Bu
lkBeanException
at net.sf.hibernate.util.ReflectHelper.getBulkBean(ReflectHelper.java:18
0)
at net.sf.hibernate.type.ComponentType.<init>(ComponentType.java:111)
at net.sf.hibernate.cfg.Binder.bindComponent(Binder.java:910)
at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:1052)
at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:362)
at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1256)
at net.sf.hibernate.cfg.Configuration.add(Configuration.java:252)
at net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:174)
at net.sf.hibernate.tool.hbm2ddl.SchemaExport.main(SchemaExport.java:289
)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 28, 2004 7:03 pm 
Proxool Developer
Proxool Developer

Joined: Tue Aug 26, 2003 10:42 am
Posts: 373
Location: Belgium
In your hibernate.properties:

Code:
## enable CGLIB reflection optimizer (enabled by default)
hibernate.cglib.use_reflection_optimizer false



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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.