-->
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.  [ 6 posts ] 
Author Message
 Post subject: Strange Java Exception -> Hibernate???
PostPosted: Tue May 31, 2005 1:13 pm 
Newbie

Joined: Tue May 31, 2005 12:44 pm
Posts: 11
Hello,
i need some help. Just starting with Hibernate now and i´,m not really through,but a problem occured so i´m stuck.

on Hibernate Version 3 and Oracle Version 9 i get the following StackTrace:

Exception in thread "main" 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:310)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:220)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
at com.gerig.app.main.TestMain.main(TestMain.java:16)


Can somebody help me ???
If somebody needs i can post my ConfigFile too.
Thanx for Help


Top
 Profile  
 
 Post subject: EHCache = required library
PostPosted: Tue May 31, 2005 1:37 pm 
Beginner
Beginner

Joined: Thu Nov 11, 2004 12:18 pm
Posts: 37
Location: Baltimore, MD
EHCache is listed as a required third-party library for hibernate, and the jar is included in the archive. Just make sure it's on your classpath.

Make sure you have the other libraries too. Here's where they are listed (Table 1.1):
http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#quickstart-intro

_________________
-Chris


Top
 Profile  
 
 Post subject: Thanx, i´ve done it finally.
PostPosted: Thu Jun 02, 2005 4:50 am 
Newbie

Joined: Tue May 31, 2005 12:44 pm
Posts: 11
I should have believed in the Tutorial to use ant. There have been quite a few more jars to be referenced by Hibernate.

Thank you.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 14, 2005 4:51 am 
Beginner
Beginner

Joined: Thu Aug 11, 2005 5:19 am
Posts: 29
Guys, I got exactly the same prolem!
Except my tabel has a name "Shopping Cart"!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 14, 2005 5:21 am 
Newbie

Joined: Tue May 31, 2005 12:44 pm
Posts: 11
Danny L. wrote:
Guys, I got exactly the same prolem!
Except my tabel has a name "Shopping Cart"!



The answer is in the post. Reference the jars and the exception will disappear. This problem was half a year ago so i can´t say what the problem really was, but i think the answer fixed my problem.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 14, 2005 5:22 am 
Beginner
Beginner

Joined: Thu Aug 11, 2005 5:19 am
Posts: 29
sorry, wrong topic :(


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