-
1. Re: WildFly and Hibernate module problem.
seto Jan 2, 2017 12:01 AM (in response to seto)It seems that it's caused by another line. This line is required for infinispan query. If I don't insert this line. Then the infinispan query and jpa full text search won't work together.
org.hibernate.search.orm:5.6.0.Beta1 is from infinispan wildfly module.
<property name="wildfly.jpa.hibernate.search.module" value="org.hibernate.search.orm:5.6.0.Beta1" />
-
2. Re: WildFly and Hibernate module problem.
seto Jan 2, 2017 2:14 AM (in response to seto)<module name="org.hibernate" slot="5.2" />
If I change the modules\system\layers\base\org\hibernate\search\orm\5.6.0.Beta1\modules.xml to add the slot 5.2. Then a new exception is reported.
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)
-
3. Re: WildFly and Hibernate module problem.
smarlow Jan 3, 2017 9:58 AM (in response to seto)Which version of WildFly are you trying this with?
-
4. Re: WildFly and Hibernate module problem.
seto Jan 3, 2017 11:15 AM (in response to smarlow)10.1.0.Final with Hibernate ORM module, Infinispan module, Hibernate OGM module, Hibernate Search module installed.
I'm trying to use the latest Hibernate ORM with Infinispan query.
So I have to use the below settings to unify the version of Hibernate Search for ORM and Infinispan query
<property name="wildfly.jpa.hibernate.search.module" value="org.hibernate.search.orm:5.6.0.Beta1" />
-
5. Re: WildFly and Hibernate module problem.
smarlow Jan 3, 2017 3:00 PM (in response to seto)The Hibernate ORM project testsuite is using WildFly 10.0.0.Final (see https://github.com/hibernate/hibernate-orm/blob/master/libraries.gradle#L25). Perhaps you should try created a patch for the Hibernate ORM project to use WildFly 10.1.0.Final.
-
6. Re: WildFly and Hibernate module problem.
seto Jan 4, 2017 10:55 AM (in response to smarlow)No. The hibernate itself is working with WildFly 10.1.0.Final well.
But the problem is that it didn't work well together with Infinispan wildfly module with query feature.
Problems with query module on WildFly.
Take a look at the last two posts. It's the compatibility problem between WildFly modules, hibernate orm and infinispan.
hibernate orm depends on hibernate search if I use full text query.
infinispan depends on hibernate search as well if I use full text query.
Then I have to unify the version by settings below.
<property name="wildfly.jpa.hibernate.search.module" value="org.hibernate.search.orm:5.6.0.Beta1" />
And I want to use the latest hibernate orm 5.2 jpa provider. So I add the setting below.
<property name="jboss.as.jpa.providerModule" value="org.hibernate:5.2" />
Then the below exception is thrown.
Caused by: java.util.ServiceConfigurationError: org.hibernate.integrator.spi.Integrator: Provider org.hibernate.search.hcore.impl.HibernateSearchIntegrator not a subtype
<module name="org.hibernate" slot="5.2" />
Then I change the dependency of hibernate search 5.6.0.Beta1. The new exception below is thrown.
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)
-
7. Re: WildFly and Hibernate module problem.
seto Jan 4, 2017 10:58 AM (in response to smarlow)I thought that they should work well together. Because they're all from JBoss and run on JBoss Server, WildFly. But they didn't.
-
8. Re: WildFly and Hibernate module problem.
seto Jan 6, 2017 11:20 AM (in response to seto)Hibernate Community • View topic - WildFly and Hibernate module problem.
The problem is finally resolved by unify the dependency of Hibernater Search to 5.7 for Infinispan Query and JPA/Hibernate ORM 5.2.
And also a small change to standalone.xml of WildFly is required if I use second level cache for JPA/Hibernate ORM 5.2.