title: org.hibernate.integrator.spi.Integrator: Provider org.hibernate.search.hcore.impl.HibernateSearchIntegrator not a subtype
body: <p>My on-going quest to migrate to Hibernate OGM 5.4 on JBoss WildFly 14.0.0.Final to use with MongoDB.</p>
  
  <p>Had it working fine in WildFly 12 &amp; 13 using earlier versions of OGM. </p>
  
  <p>Using OGM 5.4, JPA 2.2, Hibernate ORM 5.3 &amp; Hibernate Search 5.10 </p>
  
  <p>as per the: <a href="http://hibernate.org/ogm/releases/" rel="nofollow noreferrer">Compatibility matrix</a></p>
  
  <p>My 'provision' in the Gradle Build is:</p>
  
  <pre><code>provision {
     //Optional destination directory:
      destinationDir = file("wildfly-custom")
  
      configuration = file( 'wildfly-server-provisioning.xml' )
  
      // Define variables which need replacing in the provisioning configuration!
      variables['wildfly.version'] = '14.0.0.Final'
      variables['hibernate-orm.version'] = '5.3.7.Final'
      variables['hibernate-search.version'] = '5.10.4.Final'
      variables['hibernate-ogm.version'] = '5.4.0.CR1'
  }
  </code></pre>
  
  <p>which is used by:</p>
  
  <pre><code>&lt;server-provisioning xmlns="urn:wildfly:server-provisioning:1.1" copy-module-artifacts="true"&gt;
      &lt;feature-packs&gt;
          &lt;feature-pack
                  groupId="org.wildfly"
                  artifactId="wildfly-feature-pack"
                  version="${wildfly.version}"/&gt;
          &lt;feature-pack
                  groupId="org.hibernate"
                  artifactId="hibernate-orm-jbossmodules"
                  version="${hibernate-orm.version}"/&gt;
          &lt;feature-pack
                  groupId="org.hibernate"
                  artifactId="hibernate-search-jbossmodules-orm"
                  version="${hibernate-search.version}"/&gt;
          &lt;feature-pack
                  groupId="org.hibernate.ogm"
                  artifactId="hibernate-ogm-featurepack-mongodb"
                  version="${hibernate-ogm.version}"/&gt;
      &lt;/feature-packs&gt;
  &lt;/server-provisioning&gt;
  </code></pre>
  
  <p>The MongoDB persistence unit in my persistence.xml:</p>
  
  <pre><code>&lt;persistence-unit name="nOTiFYwellMongoDBPersistenceUnit" transaction-type="JTA"&gt;
  
          &lt;provider&gt;org.hibernate.ogm.jpa.HibernateOgmPersistence&lt;/provider&gt;
  
          &lt;properties&gt;
              &lt;!-- &lt;property name="jboss.as.jpa.providerModule" value="org.hibernate:5.2"/&gt; --&gt;
              &lt;property name="jboss.as.jpa.providerModule" value="org.hibernate:5.3"/&gt;
  
              &lt;!-- &lt;property name="wildfly.jpa.hibernate.search.module" value="org.hibernate.search.orm:5.8"/&gt; --&gt;
              &lt;property name="wildfly.jpa.hibernate.search.module" value="org.hibernate.search.orm:5.10.4.Final"/&gt;
              &lt;!-- &lt;property name="hibernate.transaction.jta.platform" value="JBossTS"/&gt; --&gt;
              &lt;!-- &lt;property name="hibernate.transaction.jta.platform" value="org.hibernate.service.jta.platform.internal.JBossAS"/&gt; --&gt;
              &lt;property name="hibernate.transaction.jta.platform" value="org.hibernate.service.jta.platform.internal.JBossStandAloneJtaPlatform"/&gt;
              &lt;property name="hibernate.ogm.datastore.provider" value="org.hibernate.ogm.datastore.mongodb.impl.MongoDBDatastoreProvider"/&gt;
              &lt;property name="hibernate.ogm.datastore.grid_dialect" value="org.hibernate.ogm.datastore.mongodb.MongoDBDialect"/&gt;
              &lt;property name="hibernate.ogm.datastore.database" value="notifyWellDB"/&gt;
              &lt;property name="hibernate.ogm.mongodb.host" value="127.0.0.1"/&gt;
          &lt;/properties&gt;
      &lt;/persistence-unit&gt;
  </code></pre>
  
  <p>I've copied the relevant modules from the generated WildFly 14.0.0.Final to my Home Brew installed one.</p>
  
  <p>When I enable my deployed EAR I get: </p>
  
  <pre><code>21:52:42,808 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0027: Starting deployment of "NOTiFYwell.ear" (runtime-name: "NOTiFYwell.ear")
  21:52:43,318 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0207: Starting subdeployment (runtime-name: "NOTiFYwellJAR.jar")
  21:52:43,318 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0207: Starting subdeployment (runtime-name: "NOTiFYwellWAR.war")
  21:52:44,373 INFO  [org.jboss.as.jpa] (MSC service thread 1-5) WFLYJPA0002: Read persistence.xml for nOTiFYwellMySQLPersistenceUnit
  21:52:44,373 INFO  [org.jboss.as.jpa] (MSC service thread 1-5) WFLYJPA0002: Read persistence.xml for nOTiFYwellMongoDBPersistenceUnit
  21:52:44,585 WARN  [org.jboss.as.jsf] (MSC service thread 1-6) WFLYJSF0005: Unknown JSF version 'NONE'.  Default version 'main' will be used instead.
  21:52:44,841 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 20) WFLYJPA0010: Starting Persistence Unit (phase 1 of 2) Service 'NOTiFYwell.ear/NOTiFYwellJAR.jar#nOTiFYwellMongoDBPersistenceUnit'
  21:52:44,861 INFO  [org.jboss.weld.deployer] (MSC service thread 1-2) WFLYWELD0003: Processing weld deployment NOTiFYwell.ear
  21:52:44,911 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 20) MSC000001: Failed to start service jboss.persistenceunit."NOTiFYwell.ear/NOTiFYwellJAR.jar#nOTiFYwellMongoDBPersistenceUnit".__FIRST_PHASE__: org.jboss.msc.service.StartException in service jboss.persistenceunit."NOTiFYwell.ear/NOTiFYwellJAR.jar#nOTiFYwellMongoDBPersistenceUnit".__FIRST_PHASE__: java.util.ServiceConfigurationError: org.hibernate.integrator.spi.Integrator: Provider org.hibernate.envers.boot.internal.EnversIntegrator not a subtype
      at org.jboss.as.jpa.service.PhaseOnePersistenceUnitServiceImpl$1$1.run(PhaseOnePersistenceUnitServiceImpl.java:128)
      at org.jboss.as.jpa.service.PhaseOnePersistenceUnitServiceImpl$1$1.run(PhaseOnePersistenceUnitServiceImpl.java:104)
      at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:650)
      at org.jboss.as.jpa.service.PhaseOnePersistenceUnitServiceImpl$1.run(PhaseOnePersistenceUnitServiceImpl.java:137)
      at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
      at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
      at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
      at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
      at java.lang.Thread.run(Thread.java:745)
      at org.jboss.threads.JBossThread.run(JBossThread.java:485)
  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:465)
      at org.hibernate.integrator.internal.IntegratorServiceImpl.&lt;init&gt;(IntegratorServiceImpl.java:40)
      at org.hibernate.boot.registry.BootstrapServiceRegistryBuilder.build(BootstrapServiceRegistryBuilder.java:224)
      at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.buildBootstrapServiceRegistry(EntityManagerFactoryBuilderImpl.java:455)
      at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.&lt;init&gt;(EntityManagerFactoryBuilderImpl.java:199)
      at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.&lt;init&gt;(EntityManagerFactoryBuilderImpl.java:167)
      at org.hibernate.jpa.boot.spi.Bootstrap.getEntityManagerFactoryBuilder(Bootstrap.java:32)
      at org.hibernate.jpa.boot.spi.Bootstrap.getEntityManagerFactoryBuilder(Bootstrap.java:89)
      at org.jboss.as.jpa.hibernate5.TwoPhaseBootstrapImpl.&lt;init&gt;(TwoPhaseBootstrapImpl.java:39)
      at org.jboss.as.jpa.hibernate5.HibernatePersistenceProviderAdaptor.getBootstrap(HibernatePersistenceProviderAdaptor.java:199)
      at org.wildfly.jpa.hibernateogm5.HibernateOGMPersistenceProviderAdaptor.getBootstrap(HibernateOGMPersistenceProviderAdaptor.java:87)
      at org.jboss.as.jpa.service.PhaseOnePersistenceUnitServiceImpl.createContainerEntityManagerFactoryBuilder(PhaseOnePersistenceUnitServiceImpl.java:254)
      at org.jboss.as.jpa.service.PhaseOnePersistenceUnitServiceImpl.access$900(PhaseOnePersistenceUnitServiceImpl.java:59)
      at org.jboss.as.jpa.service.PhaseOnePersistenceUnitServiceImpl$1$1.run(PhaseOnePersistenceUnitServiceImpl.java:125)
      ... 9 more
  </code></pre>
  
  <p>Seen a few other questions with the same error, but none of the suggestions help. </p>
  
  <p>Thanks.</p>