-->
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.  [ 3 posts ] 
Author Message
 Post subject: NoClassFound error
PostPosted: Mon Jun 20, 2005 6:27 am 
Newbie

Joined: Mon Oct 11, 2004 4:08 am
Posts: 15
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.0.5

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:DEBUG

I am trying to upgrade Hibernate from 3.0.0 to 3.0.5. However, I got NoClassFound error and break at line 321 on org.hibernate.impl.SessionFactoryImpl class.

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

During upgrade, I just update the hibernate3.jar, c3p0, cglib and dom4j but reuse current properties.

Please help what I miss.

Thanks!


Top
 Profile  
 
 Post subject: cglib upgrade
PostPosted: Wed Jun 22, 2005 6:58 am 
Newbie

Joined: Mon Apr 18, 2005 8:15 am
Posts: 7
Hi,

I have the same problem with the NoClassDefinitionFound error. I have used hibernate 3.0.1 with Cglib-full-2.0.2 and it worked fine. When I then upgraded the cglib to version 2.1 it failes runtime not in the compilation.

I can't find a solution!! Somebody please help!!

BR
Anders


Top
 Profile  
 
 Post subject: Re: NoClassFound error
PostPosted: Thu Jun 23, 2005 4:47 am 
Newbie

Joined: Mon Apr 18, 2005 8:15 am
Posts: 7
Hi francong

I found the solution on the described error:

You need to include asm.jar and asm-attrs.jar in your classpath. This was changed from hibernate3 RC1 to 3.0 final where the cglib jarfile was upgraded from 2.0.2 to 2.1. The readme file in /lib/ also claims that asm jarfiles are needed!!

BR
Anders


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