1 Reply Latest reply on Jan 18, 2012 7:07 AM by nick.sree

    Problem using Jboss embedded hibernate enver auditing.

    nick.sree

      Hi,

            I using Jboss AS 7 bundled hibernate to develop and deploy my application. I'm getting the following error, don't know why, we want to use auditing using envers. (We are not using JPA or EJB's)

       

      15:45:21,953 ERROR (http-127.0.0.1-127.0.0.1-8080-2) org.hibernate.MappingException: Unable to create AuditStrategy[org.hibernate.envers.strategy.DefaultAuditStrategy] instance.

      15:45:21,955 ERROR [java.lang.RuntimeException] (http-127.0.0.1-127.0.0.1-8080-2) Unable to create AuditStrategy[org.hibernate.envers.strategy.DefaultAuditStrategy] instance.: org.hibernate.MappingException: Unable to create AuditStrategy[org.hibernate.envers.strategy.DefaultAuditStrategy] instance.

                at org.hibernate.envers.configuration.AuditConfiguration.initializeAuditStrategy(AuditConfiguration.java:114)

                at org.hibernate.envers.configuration.AuditConfiguration.<init>(AuditConfiguration.java:101)

                at org.hibernate.envers.configuration.AuditConfiguration.getFor(AuditConfiguration.java:135)

                at org.hibernate.envers.event.EnversIntegrator.integrate(EnversIntegrator.java:63)

                at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:295) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]

                at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1737) [hibernate-core-4.0.0.Final.jar:4.0.0.Final]