Bug 1320709

Summary: (6.4.z) A deployment jar with EJB2 SLSB and CMP Entities will not start correctly
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: wfink
Component: EJBAssignee: jboss-set
Status: CLOSED CURRENTRELEASE QA Contact: Jan Martiska <jmartisk>
Severity: unspecified Docs Contact: Dominik Pospisil <dpospisi>
Priority: unspecified    
Version: 6.4.0CC: bmaxwell, david.lloyd, dpospisi, jbilek, msochure, rstancel, wfink
Target Milestone: CR1   
Target Release: EAP 6.4.13   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-03 16:43:46 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1386335    
Attachments:
Description Flags
Example application
none
Logfile with successful deployment and restart none

Description wfink 2016-03-23 19:10:37 UTC
Description of problem:
The server can not start with correct if an application contains EJB2 stateless session beans and CMP entities is in deployment folder.
This is similar if the application is deployed by management.

If the server is started the application will start correctly.

How reproducible:
- use new EAP 6.4.6 (or 6.4.0)
- start the server with "standalone.sh -c standalone-full.xml"
- drop the application to standalone/deployments (or use CLI)
-> application is deployed
- stop the server
- start the server
-> start fail with:

20:09:05,927 INFO  [org.jboss.as.jacorb] (MSC service thread 1-8) JBAS016328: CORBA Naming Service started
20:09:05,931 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014612: Operation ("deploy") failed - address: ([("deployment" => "EJB2examples-cmp-simple.jar")]) - failure description: {
    "JBAS014671: Failed services" => {"jboss.deployment.unit.\"EJB2examples-cmp-simple.jar\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"EJB2examples-cmp-simple.jar\".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment \"EJB2examples-cmp-simple.jar\"
    Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011030: Could not configure component SimpleCMP1Entity
    Caused by: java.lang.RuntimeException: Unable to locate the transaction manager"},
    "JBAS014771: Services with missing/unavailable dependencies" => [
        "jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMP1Entity.Validator is missing [jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMP1Entity]",
        "jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMPSession.ValidatorFactory is missing [jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMPSession]",
        "jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMP1Session.ValidatorFactory is missing [jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMP1Session]",
        "jboss.deployment.unit.\"EJB2examples-cmp-simple.jar\".jdbc.store-manager.fk-barrier is missing [jboss.deployment.unit.\"EJB2examples-cmp-simple.jar\".component.SimpleCMPEntity.jdbc.store-manager.START, jboss.deployment.unit.\"EJB2examples-cmp-simple.jar\".component.SimpleCMP1Entity.jdbc.store-manager.START]",
        "jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMP1Session.Validator is missing [jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMP1Session]",
        "jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMP1Entity.ValidatorFactory is missing [jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMP1Entity]",
        "jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMP1Session.HandleDelegate is missing [jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMP1Session]",
        "jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMPSession.Validator is missing [jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMPSession]",
        "jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMPEntity.ValidatorFactory is missing [jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMPEntity]",
        "jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMPEntity.HandleDelegate is missing [jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMPEntity]",
        "jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMPSession.HandleDelegate is missing [jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMPSession]",
        "jboss.deployment.unit.\"EJB2examples-cmp-simple.jar\".jdbc.store-manager.start-barrier is missing [jboss.deployment.unit.\"EJB2examples-cmp-simple.jar\".component.SimpleCMP1Entity.jdbc.store-manager.RELATIONS, jboss.deployment.unit.\"EJB2examples-cmp-simple.jar\".component.SimpleCMPEntity.jdbc.store-manager.RELATIONS]",
        "jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMPEntity.Validator is missing [jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMPEntity]",
        "jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMP1Session.ORB is missing [jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMP1Session]",
        "jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMP1Entity.ORB is missing [jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMP1Entity]",
        "jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMP1Entity.HandleDelegate is missing [jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMP1Entity]",
        "jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMPSession.ORB is missing [jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMPSession]",
        "jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMPEntity.ORB is missing [jboss.naming.context.java.comp.EJB2examples-cmp-simple.EJB2examples-cmp-simple.SimpleCMPEntity]",
        "jboss.deployment.unit.\"EJB2examples-cmp-simple.jar\".jdbc.store-manager.relations-barrier is missing [jboss.deployment.unit.\"EJB2examples-cmp-simple.jar\".component.SimpleCMP1Entity.jdbc.store-manager.INIT, jboss.deployment.unit.\"EJB2examples-cmp-simple.jar\".component.SimpleCMPEntity.jdbc.store-manager.INIT]"
    ]
}


Example app and Logfile with the successful deployment and the restart attached

Comment 1 wfink 2016-03-23 19:13:26 UTC
Created attachment 1139721 [details]
Example application

Sources available here
git+ssh://git.engineering.redhat.com/srv/git/users/wfink/ejb2.1.git/.git

used project cmp/simple

Same happen if deploy an ear  cmp/filedMapper
-> need to rename the datasource "ExampleDS"_>"cmpDS"

Comment 2 wfink 2016-03-23 19:14:12 UTC
Created attachment 1139722 [details]
Logfile with successful deployment and restart

Comment 11 Jiří Bílek 2017-01-09 14:26:28 UTC
Verified with EAP 6.4.13.CP.CR1

Comment 12 Petr Penicka 2017-02-03 16:43:46 UTC
Released with EAP 6.4.13 on Feb 02 2017.