And also it breaks the ORM JPA as well. The error below is reported.
Quote:
Caused by: java.util.ServiceConfigurationError: org.hibernate.integrator.spi.Integrator: Provider org.hibernate.envers.boot.internal.EnversIntegrator not a subtype
Then I change the JPA settings to use Hibernate ORM 5.1.
Code:
<property name="jboss.as.jpa.providerModule" value="org.hibernate:5.1" />
Then the error below is reported.
Quote:
Caused by: org.hibernate.cache.CacheException: HHH025011: Infinispan custom cache command factory not installed (possibly because the classloader where Infinispan lives couldn't find the Hibernate Infinispan cache provider)
Then I change the cache container module setting to 5.1 and make the 2nd level cache working.
Code:
<cache-container name="hibernate" default-cache="local-query" module="org.hibernate.infinispan:5.1">
Quote:
Then the error below is reported.
Quote:
Caused by: java.lang.IllegalArgumentException: An SPI class of type org.apache.lucene.codecs.Codec with name 'Lucene54' does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath. The current classpath supports the following names: [Lucene53, Lucene40, Lucene41, Lucene42, Lucene45, Lucene46, Lucene49, Lucene410, Lucene50]
Then I check the Lucene in WildFly modules.
The module come with infinispan-as-embedded-modules-8.2.5.Final.zip is Lucene 5.5.
The module come with hibernate-search-modules-5.5.5.Final-wildfly-10-dist.zip is Lucene 5.3.
No Lucene54 indeed.
UPDATED:But after a fresh install of WildFly and modules, this problem is gone.
=================================================================================
Now the only problem is Hibernate Search version difference between Infinispan Query and Hibernate OGM.
Hibernate OGM uses Hibernate ORM 5.1.2 which Hibernate Search version is 5.5.5.Final-orm51.
Infinispan Query uses Hibernate Search 5.6.0.Beta1.