1 Reply Latest reply on Nov 13, 2014 12:09 PM by weboctave

    JBoss EAP 6.3 with JPA 2.1

    Michał Węgrzyn Newbie

      Hi,

       

      We have Spring based application which is based on Hibernate 4.3.5 (JPA 2.1).

      I know that EAP 6.3.0 is JPA 2.0 compatible, but is there any possibility to run application with JPA 2.1?

       

      I've used this jboss-deployment-structure.xml:

       

      <?xml version="1.0"?>

      <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">

          <deployment>

              <dependencies>

                  <system>

                      <paths>

                          <path name="com/sun/net/httpserver" />

                      </paths>

                  </system>

              </dependencies>

              <exclusions>

                  <module name="javax.persistence.api" />

                  <module name="org.hibernate" />

              </exclusions>

          </deployment>

      </jboss-deployment-structure>

       

       

      and I've changed standalone xml to disable jpa subsystem.

      I've also changed modules/system/layers/base/javaee/api/main/module.xml to do not export jpa:

       

      <module name="javax.persistence.api" export="false"/>

       

      I've tried also to update javax.persistence and org.hibernate modules to newer versions, but without luck - it seems that a lot of JBoss module use these modules.

       

       

      Does anybody have an idea what can be done?

      Known alternatives are: using JPA 2.0 or trying disabling whole Java EE stack (gives other problems).