Created attachment 1139971 [details] Application EAR file Description of problem: If an application EAR contains several ejb-modules and one or more include only EJB2CMP Entities the application will be deployed and the CMP Beans are correctly detected. If a deployment-overlay is applied to the CMP.jar the beans are not longer deployed. Version-Release number of selected component (if applicable): This applies to all 6.4.x releases. The same application with overlay works for 6.3.2 How reproducible: Use a fresh 6.4.x - start "bin/standalone.sh -c standalone-full.xml" - use CLI and deploy the example EAR - that shows 2 beans the SLSB and the Entity successfully deployed - use CLI to overlay deployment-overlay add --name=EAR_DS_overlay --content=/cmp.jar/META-INF/jbosscmp-jdbc.xml=cmp/jbosscmp-jdbc.xml --deployments=EJB2examples-cmp-simple-ear.ear --redeploy-affected - deployment succeeds but only the SLSB is shown if the reference is used with injection (@EJB is commented) it will fail directly because of missing reference I've not tested whether it is different if the SLSB is a EJB2 bean instead.
Created attachment 1139972 [details] Overlay file to change the DS name - deployment should fail because of the missing resource