We're running an EAR on WAS 8.5, and every one of our DAOs are duplicated 31 times. Noticing our persistence.xml has 30 JNDI datasources, I tested reducing the number, and indeed the duplicate count decreases.
But I've tried removing every superfluous line in succession, and I still get the duplicates. Removing the last line gives me a NestedJarException though.
<persistence-unit name="unitTest"
transaction-type="JTA">
<jta-data-source>jdbc/Testing/Ds</jta-data-source>
<mapping-file>META-INF/default-mappings.xml</mapping-file>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
</persistence-unit>
Does anyone know of anything else that might cause my EJB classes to be duplicated for every persistence unit?
Regards