| You're likely getting that error because your WildFly instance is using older versions of the Hibernate platform. For example, WildFly 10.1.0.Final ships with Hibernate and Hibernate Envers 5.0.10.Final. What you've specified above is part of maven's pom that states you want to a) compile against Hibernate Envers 5.2.2.Final and that b) if you were deploying as a WAR, you'd want that dependency to be included in the WEB-INF/lib classpath. But since you're deploying a JAR without any libraries, WildFly uses the default libraries it ships with; hence the failure. Update the hibernate components in your WildFly installation to 5.2.2.Final and see if the problem disappears for you in that environment. I would suggest using the new hibernate-orm-modules WildFly distribution bundle; however, it didn't include the hibernate-envers component as intended and won't be fixed until the 5.2.3.Final release, see
HHH-11007 Open . |