Excluding JPA Subsystem from JBoss EAP 6.1 - Trying to use JPA 2.1 in JBoss EAP 6.1

后端 未结 4 750
清酒与你
清酒与你 2021-02-08 05:08

I have a war application which contains JPA 2.1 API and Hibernate 4.3.0.Final ( JPA 2.1 implementation) packaged and bootstrapped using Spring container and I want to deploy th

4条回答
  •  清酒与你
    2021-02-08 05:59

    Found a solution that seems to work with hibernate-core-4.3.1.

    Step 1: remove subsystem jpa from standalone.xml:

        
            
        
    

    Thanks to this blog article: http://mariemjabloun.blogspot.nl/2014/02/jboss-eap-6-persistence-unit-problem.html

    Step 2: exclude jpa, javaee modules in jboss-deployment-structure.xml of the war:

        
            
            
        
    

提交回复
热议问题