title: org.hibernate.integrator.spi.Integrator: Provider org.hibernate.envers.boot.internal.EnversIntegrator not a subtype
body: <p>I am migrating my java web application from Jboss 7.1.1 Final to Wildfly 10,using : </p>
  
  <ul>
  <li>spring 4.2.0,</li>
  <li>hibernate 5.0.7,</li>
  <li>jpa 2.1 </li>
  <li><p>and Mysql database. </p>
  
  <p>I getting the following error while trying to run my code.</p></li>
  </ul>
  
  <blockquote>
    <p>2016-07-20 19:30:50,176 ERROR [org.jboss.msc.service.fail]
    (ServerService Thread Pool -- 61) MSC000001: Failed to start service
    jboss.persistenceunit."ccp-ear-1.0-SNAPSHOT.ear/ccp-entities-1.0-SNAPSHOT.jar#ccpPU":
    org.jboss.msc.service.StartException in service
    jboss.persistenceunit."ccp-ear-1.0-SNAPSHOT.ear/ccp-entities-1.0-SNAPSHOT.jar#ccpPU":
    <strong>java.util.ServiceConfigurationError: org.hibernate.integrator.spi.Integrator: Provider
    org.hibernate.envers.boot.internal.EnversIntegrator not a subtype</strong>
      at
    org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:172)
      at
    org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:117)
      at
    org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:667)
      at
    org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:182)
      at
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)    at
    org.jboss.threads.JBossThread.run(JBossThread.java:320) Caused by:
    java.util.ServiceConfigurationError:
    org.hibernate.integrator.spi.Integrator: Provider
    org.hibernate.envers.boot.internal.EnversIntegrator not a subtype     at
    java.util.ServiceLoader.fail(ServiceLoader.java:239)  at
    java.util.ServiceLoader.access$300(ServiceLoader.java:185)    at
    java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:376)
      at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
      at java.util.ServiceLoader$1.next(ServiceLoader.java:480)   at
    org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.loadJavaServices(ClassLoaderServiceImpl.java:324)
      at
    org.hibernate.integrator.internal.IntegratorServiceImpl.(IntegratorServiceImpl.java:40)
      at
    org.hibernate.boot.registry.BootstrapServiceRegistryBuilder.build(BootstrapServiceRegistryBuilder.java:213)
      at
    org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.buildBootstrapServiceRegistry(EntityManagerFactoryBuilderImpl.java:365)
      at
    org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.(EntityManagerFactoryBuilderImpl.java:166)
      at
    org.hibernate.jpa.boot.spi.Bootstrap.getEntityManagerFactoryBuilder(Bootstrap.java:34)
      at
    org.hibernate.jpa.HibernatePersistenceProvider.getEntityManagerFactoryBuilder(HibernatePersistenceProvider.java:165)
      at
    org.hibernate.jpa.HibernatePersistenceProvider.getEntityManagerFactoryBuilder(HibernatePersistenceProvider.java:160)
      at
    org.hibernate.jpa.HibernatePersistenceProvider.createContainerEntityManagerFactory(HibernatePersistenceProvider.java:135)
      at
    org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:318)
      at
    org.jboss.as.jpa.service.PersistenceUnitServiceImpl.access$1100(PersistenceUnitServiceImpl.java:67)
      at
    org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:167)
      ... 7 more</p>
  </blockquote>