-->
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: Hibernate Search / org.hibernate.cache.EhCacheProvider
PostPosted: Thu Aug 14, 2008 10:22 am 
Newbie

Joined: Wed Jul 23, 2008 9:27 am
Posts: 7
Hello,

I'm using Hibernate-cire 3.3.0 CR2 along with Hibernate Search 3.1.0.Beta1.
Using Hibernate Search I get an exception telling :
java.lang.ClassNotFoundException: org.hibernate.cache.EhCacheProvider

So I looked into Hibernate Search's POM file to see if there was such a dependency.
But I couldn't find such one. Is it missing ?

Thanks,
Marc.


Top
 Profile  
 
 Post subject: Re: Hibernate Search / org.hibernate.cache.EhCacheProvider
PostPosted: Thu Aug 14, 2008 10:42 am 
Newbie

Joined: Tue Jul 29, 2008 2:01 pm
Posts: 5
Location: Brasil
Mark,

this class is in hibernate3.jar, try to add this in your project dependencies, and post the log message if some error happen.

_________________
--------------------
Iuliana Souza


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 14, 2008 1:16 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
hi, you can try using the POM in search but AFAIK maven support is not complete yet.
Let us know if it worked, but consider yourself an "alfa" tester ;-)

http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-82

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 14, 2008 2:47 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
BTW you must be using a quite old version of Hibernate Core or have explicitly asked for EhCache in your config. If I remember correctly, EHCache is now disabled by default.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 18, 2008 5:51 am 
Newbie

Joined: Wed Jul 23, 2008 9:27 am
Posts: 7
Hello,

Thanks for the answers.
The problem was indeed that I had a reference to org.hibernate.cache.EhCacheProvider in the hibernate.cfg.xml file.

So I replaced this by net.sf.ehcache.hibernate.EhCacheProvider and simply added this dependency in my pom.xml :

<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache</artifactId>
<version>1.5.0</version>
</dependency>


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.