-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
None
-
9.0.2.Final
-
None
Excluding the module 'org.javassit' in the jboss-deployment-structure.xml does not work correctly for all modules in EAR when shipping custom version of Hibernate and Javassist and setting property
<property name="jboss.as.jpa.providerModule" value="application" />
in the persistence.xml.
In case of the following EAR structure:
EAR |`-- lib | |`-- javassist-3.20.0-GA.jar | `-- <hibernate 4.2.19 jars> |`-- META-INF | |`-- jboss-deployment-structure.xml | `-- application.xml |`-- EJB-JAR | `-- META-INF | `-- persistence.xml `-- WAR
and the content of the jboss-deployment-structure.xml
jboss-deployment-structure.xml
<?xml version="1.0" encoding="UTF-8"?> <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1"> <ear-subdeployments-isolated>false</ear-subdeployments-isolated> <deployment> <exclusions> <module name="org.hibernate" /> <module name="org.javassist" /> </exclusions> </deployment> </jboss-deployment-structure>
and persistence.xml
persistence.xml
<?xml version="1.0" encoding="UTF-8"?> <persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd" version="2.1"> <persistence-unit name="cce-example" transaction-type="JTA"> <provider>org.hibernate.ejb.HibernatePersistence</provider> <jta-data-source>jdbc/CCE_DS</jta-data-source> <properties> <property name="jboss.as.jpa.providerModule" value="application" /> </properties> </persistence-unit> </persistence>
The module EJB-JAR loads javassist classes not from the bundled EAR/lib/javassist-3.20.0-GA.jar but from <WF>/modules/system/layers/base/org/javassist/main/javassist-3.18.1-GA.jar