-->
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: could not instantiate CacheProvider: net.sf.ehcache.hibernat
PostPosted: Thu Mar 25, 2004 2:42 am 
Newbie

Joined: Sun Mar 14, 2004 1:37 am
Posts: 4
Location: china
i config hibernate.cfg.xml like this:

<property name="cache.use_query_cache">true</property>
<property name="cache.provider_class">net.sf.hibernate.cache.OSCacheProvider
</property>

and copy the ehcache.xml like this:

<ehcache>
<diskStore path="java.io.tmpdir"/>
<defaultCache
maxElementsInMemory="10000"
eternal="false"
timeToIdleSeconds="120"
timeToLiveSeconds="120"
overflowToDisk="true"
/>
<cache name="sampleCache1"
maxElementsInMemory="10000"
eternal="false"
timeToIdleSeconds="300"
timeToLiveSeconds="600"
overflowToDisk="true"
/>
<cache name="sampleCache2"
maxElementsInMemory="1000"
eternal="true"
timeToIdleSeconds="0"
timeToLiveSeconds="0"
overflowToDisk="false"
/>
</ehcache>

but it not work

net.sf.hibernate.HibernateException: could not instantiate CacheProvider: net.sf.ehcache.hibernate.Provider

the xml in classes dir
the ehcache.jar in lib dir

_________________
--*--


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 25, 2004 2:58 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
Quote:
<property name="cache.provider_class">net.sf.hibernate.cache.OSCacheProvider
</property>


are you sure this line is ok? shouldn't you put ehCache here?


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.