-->
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.  [ 2 posts ] 
Author Message
 Post subject: Fehler bei Hibernate Reference Documentation Beispiel
PostPosted: Tue May 24, 2005 4:53 am 
Newbie

Joined: Fri May 13, 2005 5:20 am
Posts: 6
Hallo,

Ich bin Neuanwenderin von Hibernate und versuche daher das erste kleine Beispiel aus der Hibernate Reference Documentation zu erstellen. Aber irgendwie bekomme ich es einfach nicht lauffähig.

Ich nutze Eclipse 3.1M6, Hibernate3.0 und eine mySQL Datenbank.

Alle Versuche enden in diesen Meldungen:


log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
Initial SessionFactory failed: java.lang.NoClassDefFoundError: net/sf/ehcache/CacheException
Exception in thread "main" java.lang.ExceptionInInitializerError
at HibernatUtil.<clinit>(HibernatUtil.java:15)
at TestClient.createAndStoreHoney(TestClient.java:23)
at TestClient.main(TestClient.java:13)
Caused by: java.lang.NoClassDefFoundError: net/sf/ehcache/CacheException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
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 HibernatUtil.<clinit>(HibernatUtil.java:12)
... 2 more


Ich hoff jemand kann mir bei diesem Problem helfen.
Danke im voraus
Gaby


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 24, 2005 6:42 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Erste Antwort in der FAQ.


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