Configure persistence units to be available in several jars of an ear
问题 In a .ear file, my EJBs are copied in several jar and war for some technical constraints. And only one of these jar contains the persistence.xml file where I have configured several persistence units. myear.ear |---- myjar1.jar |-------- META-INF/persistence.xml |---- myjar2.jar |---- mywar.war The problem is Jboss cannot find the persistence configuration for the classes within the jar "myjar2" and the war : Could not get class configuration for ....EjbA.class due to the following errors: