-->
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.  [ 4 posts ] 
Author Message
 Post subject: java.lang.NoClassDefFoundError: net.sf.cglib.proxy.Enhancer
PostPosted: Thu May 18, 2006 4:55 am 
Newbie

Joined: Sun Feb 26, 2006 7:49 pm
Posts: 2
Hi,

I'm using linux (fedora 5), Eclipse 3.1.2, JDK 1.5.0_06, mySQL 5.0.18 and Hibernate Tools 3.1.0.beta5. I can use the 'New' wizards to generate the Hibernate config file and Hibernate console configuration. When I click on the resulting Hibernate console config (to open the session factory) I get a "java.lang.NoClassDefFoundError: net.sf.cglib.proxy.Enhancer".

cglib-2.1.3.jar is in /usr/share/eclipse/plugins/org.hibernate.eclipse_3.1.0.beta5/lib/hibernate but does not seem to be being picked up. I've used the Hibernate Tools on windows before but not tried it on linux before.

Full stack trace is below:-

java.lang.NoClassDefFoundError: net.sf.cglib.proxy.Enhancer
at java.lang.Class.initializeClass (libgcj.so.7)
at org.hibernate.console.node.ProxyFactory.createEnhancer (ProxyFactory.java:53)
at org.hibernate.console.node.NodeFactory.createConfigurationEntitiesNode (NodeFactory.java:58)
at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren (ConsoleConfigurationWorkbenchAdapter.java:44)
at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren (BasicWorkbenchAdapter.java:69)
at org.eclipse.ui.progress.DeferredTreeContentManager$1.run (org.eclipse.ui.workbench_3.1.2.jar.so)
at org.eclipse.core.internal.jobs.Worker.run (org.eclipse.core.runtime_3.1.2.jar.so)

Joe


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 18, 2006 6:17 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
any chance you by accident have added the jar's to the console configuration classpath ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 18, 2006 7:06 am 
Newbie

Joined: Sun Feb 26, 2006 7:49 pm
Posts: 2
The only jars I haved added to the console config are the jdbc drivers and pojos (as per docs).

The code generation works fine (hits the database and generates the pojos) - it is only when I try to use the session factory via the Hibernate Configuration view that the error fecthing the childre (cglib classpath error).

Joe

_________________
Joe Mooney


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 18, 2006 9:38 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
have you used InstrumentTask on the objects?

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.