How do you declare the jars ??
A)
Code:
<persistence-unit name="entityManager" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>jdbc/xxx</jta-data-source>
<jar-file>first.jar</jar-file>
<properties>
<property name="hibernate.ejb.cfgfile" value="/META-INF/hibernate.cfg.xml"/>
</properties>
</persistence-unit>
<persistence-unit name="entityManager2" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>jdbc/xxx</jta-data-source>
<jar-file>seconde.jar</jar-file>
<properties>
<property name="hibernate.ejb.cfgfile" value="/META-INF/hibernate.cfg.xml"/>
</properties>
</persistence-unit>
B)
Code:
<persistence-unit name="entityManager" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>jdbc/xxx</jta-data-source>
<jar-file>first.jar</jar-file>
<jar-file>second.jar</jar-file>
<properties>
<property name="hibernate.ejb.cfgfile" value="/META-INF/hibernate.cfg.xml"/>
</properties>
</persistence-unit>
?