Originally posted by shri mon:
I get the following error when i try to use a cache.
org.hibernate.HibernateException: could not instantiate CacheProvider: net.sf.hibernate.cache.OSCacheProvider
The entry which i have in the hibernate.cfg.xml is:
<property name="hibernate.cache.provider_class">net.sf.hibernate.cache.OSCacheProvider</property>
Thanks in advance.
Shrimon
Hibernate is not able to instantiate the class net.sf.hibernate.cache.OSCacheProvider
Since you have not given the version of Hibernate. It is impossible to tell whether you are using the correct class that Hibernate is looks for during instantiation.
I would suggest you attach the jar file to the
IDE and use the debugger to see why it is throwing this exception.
Check the documentation for that particular version of Hibernate and make sure the name of the class is correct.
As far as I know the latest version of Hibernate 3.0, the package names have been changed from net..... to org....
Bala