EJB 2.x Entity Beans ignored during startup/deployment
Environment
- JBoss Enterprise Application Platform [EAP] 6.4
Issue
- Application containing
- CMP beans
- deployment-overlay
successfully worked on EAP 6.2
- Application failed during deployment on EAP6.4 as EJB 2.x Entity Beans got ignored
Resolution
- Apply EAP 6.4.CP8 or higher
Root Cause
- If a deployment-overlay is applied to the CMP.jar the beans are not longer deployed.
Diagnostic Steps
- 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
SBR
Components
Category
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.