-->
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: Hibernate application + Java Web Start
PostPosted: Sun Dec 21, 2003 11:15 pm 
Newbie

Joined: Sun Dec 21, 2003 11:07 pm
Posts: 3
Hi,

I have recently created a Hibernate application, which is working fine in my Eclipse IDE environment. However, when i tried to run it through Java Web Start, I get "NoClassDefFoundError".

I have tried all possible combinations of cglib-asm.jar,cglib.jar and the cglib-full-......jar. A similar problem was answered in the FAQ section, but the solution of having the latest cglib.jar does'nt work.

I am stuck at this moment. Plz help...

Here is the stack trace ..
java.lang.NoClassDefFoundError

at net.sf.cglib.reflect.FastClassEmitter.<init>(FastClassEmitter.java:103)

at net.sf.cglib.reflect.FastClass$Generator.generateClass(FastClass.java:100)

at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:63)

at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:190)

at net.sf.cglib.reflect.FastClass$Generator.create(FastClass.java:92)

at net.sf.cglib.reflect.FastClass.create(FastClass.java:74)

at net.sf.hibernate.type.ComponentType.<init>(ComponentType.java:113)

at net.sf.hibernate.cfg.Binder.bindComponent(Binder.java:871)

at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:278)

at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1204)

at net.sf.hibernate.cfg.Configuration.add(Configuration.java:247)

at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:281)

Thanks
Dinesh


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 23, 2003 8:03 am 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
Try to download cglib-full-2.0-RC2.jar and remove cglib* from classpath before to add this one. if you need both cglib versions try to add cglib-1.1-RC1.jar, two cglib versions with sole ASM 1.4 can work (untested at this time)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 23, 2003 9:17 pm 
Newbie

Joined: Sun Dec 21, 2003 11:07 pm
Posts: 3
I've tried that one as well. but no luck.

I am still not able to understand, why the same exact libraries work through an IDE and not stand alone.


Thanks
Dinesh


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 24, 2003 1:00 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
WebStart does some fiddeling with classloaders, which might probably confuse cglib. There are some subtile difficulties with Webstart, which are really hard to debug - guess you have to figure that out yourself. There is lots of interesting stuff concerning WebStart at http://lopica.sourceforge.net/faq.html - let us know if you manage to fix this.


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.