Bug 1321014 - [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
Summary: [GSS](6.4.z) Application EAR file which contains an EJB3 jar and an EJB2 one ...
Keywords:
Status: CLOSED DUPLICATE of bug 1147352
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: EJB
Version: 6.4.0,6.4.1,6.4.2,6.4.3,6.4.4,6.4.5,6.4.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Bartek Spyrko-Smietanko
QA Contact: Jan Martiska
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-24 13:25 UTC by wfink
Modified: 2019-12-16 05:34 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-03-30 17:52:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Application EAR file (9.45 KB, application/zip)
2016-03-24 13:25 UTC, wfink
no flags Details
Overlay file to change the DS name - deployment should fail because of the missing resource (285 bytes, application/xml)
2016-03-24 13:26 UTC, wfink
no flags Details

Description wfink 2016-03-24 13:25:13 UTC
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.

Comment 1 wfink 2016-03-24 13:26:33 UTC
Created attachment 1139972 [details]
Overlay file to change the DS name - deployment should fail because of the missing resource


Note You need to log in before you can comment on or make changes to this bug.