-->
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.  [ 9 posts ] 
Author Message
 Post subject: Bug of org.hibernate.impl.SessionFactoryImpl in Hibernate3.0
PostPosted: Fri Apr 01, 2005 3:44 am 
Newbie

Joined: Sun Feb 27, 2005 5:00 am
Posts: 6
Location: shanghai, china
I update Hiberante from Hibernate 3.0 release candidate to final released, but when run my application,catch Exception:

Exception in thread "main" java.lang.NoClassDefFoundError
at org.hibernate.impl.SessionFactoryImpl.<clinit>(SessionFactoryImpl.java:308)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
at ipnet.core.server.util.HibernateUtil.<clinit>(HibernateUtil.java:25)


my application can run in realse candidate, i just replace hibernate3.jar, cglib-2.0 with cglib-2.1, and antlr-2.7.4 with antlr-2.7.5


Top
 Profile  
 
 Post subject: SessionFactoryImpl - NoClassDefFoundError
PostPosted: Fri Apr 01, 2005 7:31 am 
Newbie

Joined: Mon Mar 14, 2005 11:54 am
Posts: 6
Hi


I replaced all hibernnate3 rc jars with the final releas jars in jboss (3.2.3) and got NoClassDefFoundError in JBoss. The system worked before I changed the to Hibernate3 final!!


/Georges


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 01, 2005 7:41 am 
Beginner
Beginner

Joined: Mon Dec 15, 2003 5:25 am
Posts: 48
Location: Delhi, India
It is working fine for me, but I replaced each and every jar.

_________________
Vinod K. Singh


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 01, 2005 10:17 am 
Newbie

Joined: Fri Apr 01, 2005 10:14 am
Posts: 1
I had exactly the same problem which I could fix for my deployment by including asm.jar + asm-attrs.jar (those were apparently not required libs for 3.0rc1 ?!).

See /lib/README.txt for an overview for the required/optional libraries

HTH,
Yann


Top
 Profile  
 
 Post subject: Solved
PostPosted: Fri Apr 01, 2005 10:25 am 
Newbie

Joined: Mon Mar 14, 2005 11:54 am
Posts: 6
Thanx a lot. The asm-* jar were missing, it now works for me.

/Georges


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 01, 2005 2:44 pm 
Pro
Pro

Joined: Fri Nov 19, 2004 5:52 pm
Posts: 232
Location: Chicago, IL
The same thing happened to me and adding the asm*.jars worked. The thing that seemed odd to me was the fact that it didn't tell what class was missing. Normally, it does that...


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 02, 2005 2:08 am 
Newbie

Joined: Sun Feb 27, 2005 5:00 am
Posts: 6
Location: shanghai, china
I read the source of SessionFactoryImpl, and line of 308 is:

QUERY_KEY_FACTORY = (QueryCacheKeyFactory) KeyFactory.create(QueryCacheKeyFactory.class);


QueryCacheKeyFactory is inner interface, and KeyFactory is import by
"import net.sf.cglib.core.KeyFactory", and in the cglib-2.1.jar!

But why java.lang.NoClassDefFoundError?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 02, 2005 6:37 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Check lib/README.txt and make sure you have all required libraries.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 04, 2005 3:03 am 
Newbie

Joined: Sun Feb 27, 2005 5:00 am
Posts: 6
Location: shanghai, china
christian, thank you and very sorry for not checking lib/README

asm-attrs.jar and asm.jar is required for final, but not included in release candidate!

Thank you and sorry for my careless!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 9 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.