-->
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.  [ 5 posts ] 
Author Message
 Post subject: Strange Trouble migrating to 3.0
PostPosted: Wed Apr 13, 2005 8:19 am 
Newbie

Joined: Wed Apr 13, 2005 8:10 am
Posts: 15
Hi,
I changed my Jar to Hibernate 3.0 and am getting a session-init-exception:

Code:
java.lang.NoClassDefFoundError: net/sf/ehcache/CacheException
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
        at java.lang.Class.getConstructor0(Class.java:2640)
        at java.lang.Class.newInstance0(Class.java:321)
        at java.lang.Class.newInstance(Class.java:303)
        at org.hibernate.cfg.SettingsFactory.createCacheProvider(SettingsFactory.java:262)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:184)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1505)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1053)

But I could not find where this is coming from - there are no references to net.sf.ehcache.CacheException in my code...

Would be glad to get a tip on that one...
Cheers,
Ron


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 13, 2005 8:53 am 
Newbie

Joined: Wed Apr 13, 2005 8:10 am
Posts: 15
Check hibernate 3.0 dependencies :)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 14, 2005 1:13 am 
Newbie

Joined: Mon Mar 14, 2005 5:16 pm
Posts: 1
Hibernate 3 uses EHCache by default for the second level cache. If you are not using the second level cache and don't want to include EHCache in your deployment, you could specify the Hashtable cache provider.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 14, 2005 2:51 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
in your hibernate.cfg.xml change net.sf to org.

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


Top
 Profile  
 
 Post subject: Re: Strange Trouble migrating to 3.0
PostPosted: Thu Apr 14, 2005 4:12 am 
Beginner
Beginner

Joined: Thu Mar 24, 2005 5:21 pm
Posts: 21
Ron wrote:
Hi,
I changed my Jar to Hibernate 3.0 and am getting a session-init-exception:

mmm - are you sure you've included ehcache-1.1.jar from the Hibernate distribution in your application's classpath ?
Satish


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