| Summary: | [GSS](6.4.z) Application EAR file which contains an EJB3 jar and an EJB2 one with persistence and overlay will not detect the EJB2 CMP EntityBeans | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | wfink | ||||||
| Component: | EJB | Assignee: | Bartek Spyrko-Smietanko <bspyrkos> | ||||||
| Status: | CLOSED DUPLICATE | QA Contact: | Jan Martiska <jmartisk> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 6.4.0, 6.4.1, 6.4.2, 6.4.3, 6.4.4, 6.4.5, 6.4.6 | CC: | bmaxwell, bspyrkos, david.lloyd | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2016-03-30 17:52:58 UTC | Type: | Bug | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Attachments: |
|
||||||||
Created attachment 1139972 [details]
Overlay file to change the DS name - deployment should fail because of the missing resource
|
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.