5 Replies Latest reply on Jul 29, 2009 1:02 PM by Adam Warski

    Does Envers work with Hibernate 3.2.4 G.A?

    Ganesh Sethuraman Newbie

      Hi Adam,
      Does Envers work with Hibernate 3.2.4.GA..?
      When we tried to use the same we got the following error.
      Caused by: java.lang.NoClassDefFoundError: org/hibernate/cache/access/EntityRegionAccessStrategy
      at java.lang.Class.getDeclaredConstructors0(Native Method)
      at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
      at java.lang.Class.getConstructor0(Class.java:2699)
      at java.lang.Class.getConstructor(Class.java:1657)
      at org.hibernate.persister.PersisterFactory.create(PersisterFactory.java:91)
      at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:64)
      at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:226)
      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1300)
      at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:859)
      at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
      at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:132)
      at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:224)
      at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:291)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
      ... 34 more
      Caused by: java.lang.ClassNotFoundException: org.hibernate.cache.access.EntityRegionAccessStrategy
      at org.springframework.instrument.classloading.ShadowingClassLoader.doLoadClass(ShadowingClassLoader.java:146)
      at org.springframework.instrument.classloading.ShadowingClassLoader.loadClass(ShadowingClassLoader.java:102)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      ... 49 more

      org.hibernate.cache.access.EntityRegionAccessStrategy.
      Thanks in Advance.