Hibernate version: 3.3.0 SP1
Hi all,
I'm trying to get Hibernate 3 to work using JBoss Cache 2 as the second level cache provider. According to the documentation, the provider class to specify via hibernate.cache.provider_class is org.hibernate.cache.jbc2.JBossCacheRegionFactory.
One snag with this: JBossCacheRegionFactory does not implement the CacheProvider interface, so it cannot be instantiated if configured like any other 2nd level cache provider.
Is there a different configuration mechanism when using JBoss Cache 2 as a second level cache provider with Hibernate 3, or does it plain not work?
Thanks and regards,
--doug
Code:
Caused by: org.hibernate.cache.CacheException: could not instantiate CacheProvider [org.hibernate.cache.jbc2.JBossCacheRegionFactory]
at org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge.<init>(RegionFactoryCacheProviderBridge.java:66)
... 81 more
Caused by: java.lang.ClassCastException: org.hibernate.cache.jbc2.JBossCacheRegionFactory incompatible with org.hibernate.cache.CacheProvider
at org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge.<init>(RegionFactoryCacheProviderBridge.java:63)
... 81 more