-
1. Re: [EAP7.0.0] How to use EAR packaged library Hibernate 5.2.10 Final ?
andey Aug 30, 2017 8:10 AM (in response to ctabin)Recommended that to update the application to use the bundled Hibernate release...Hibernate Core 5.0.12.Final is fully compatible version in JBoss EAP 7.
You need try to exclude the supported Hibernate libraries which are bundled with EAP by excluding the org.hibernate module as detailed in (Class Loading in AS7 - JBoss AS 7.0 - Project Documentation Editor ) see Exclude Subsystem Dependency
Automatic dependencies can be excluded through the use of jboss-deployment-structure.xml.
-
2. Re: [EAP7.0.0] How to use EAR packaged library Hibernate 5.2.10 Final ?
tabincedric Sep 1, 2017 9:41 AM (in response to andey)Hello,
Thanks for your response.
Unfortunately, disabling the dependency on org.hibernate does not work: it crashes during the deployment.
Here is what I tried:
<pre>
<jboss-deployment-structure>
<deployment>
<exclude-subsystems>
<subsystem name="org.hibernate" />
</exclude-subsystems>
<exclusions>
<module name="org.hibernate" />
</exclusions>
</deployment>
</jboss-deployment-structure></pre>
And JBoss crashes with this message:
<pre>
{"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"app.ear/ejb.jar#app-ejbPU\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"app.ear/ejb.jar#app-ejbPU\": java.util.ServiceConfigurationError: org.hibernate.integrator.spi.Integrator: Provider org.hibernate.envers.boot.internal.EnversIntegrator not a subtype
Caused by: java.util.ServiceConfigurationError: org.hibernate.integrator.spi.Integrator: Provider org.hibernate.envers.boot.internal.EnversIntegrator not a subtype"}}}}</pre>