spring - java.lang.NoClassDefFoundError: org/hibernate/cache/TimestampsRegion -
i trying implement hibernate 2nd level cache in application.
pom.xml
<dependency> <groupid>org.hibernate</groupid> <artifactid>hibernate-ehcache</artifactid> <version>4.3.8.final</version> </dependency> <dependency> <groupid>org.hibernate</groupid> <artifactid>hibernate-core</artifactid> <version>4.1.5.final</version> </dependency>
persistence.xml
<property name="hibernate.cache.region.factory_class" value="net.sf.ehcache.hibernate.ehcacheregionfactory"/> <property name="hibernate.cache.provider_class" value="org.hibernate.cache.singletonehcacheprovider"/> <property name="hibernate.cache.use_second_level_cache" value="true"/> <property name="hibernate.cache.use_query_cache" value="true"/>
from hibernate 4, in persistance.xml
<property name="hibernate.cache.region.factory_class" value="org.hibernate.cache.ehcache.ehcacheregionfactory"/>
Comments
Post a Comment