Version 1

    I am evaluating JBoss EAP 7.0.5 and try to create a stateless session bean with IIOP service.  I follow jboss-ejb3.xml sample and create it as below but throw "ORB is missing" error as below.  What JBoss configuration/ejb descriptor I need to set?

     

    Thanks and regards

     

    Deployment Error

    2017-03-28 12:42:53,749 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "ADSR_OTC_App.ear")]) - failure description: {"WFLYCTL0180: Services with missing/unavailable dependencies" => [

        "jboss.naming.context.java.comp.ADSR_OTC_App.ADSR_EnhanceJaf_EJB.BasicSecurityServiceBean.ORB is missing [jboss.iiop-openjdk.orb-service]",

        "jboss.naming.context.java.comp.ADSR_OTC_App.ADSR_EnhanceJaf_EJB.MailerMDB.ORB is missing [jboss.iiop-openjdk.orb-service]",

        "jboss.naming.context.java.comp.ADSR_OTC_App.ADSR_EnhanceJaf_EJB.MailerMDB2.ORB is missing [jboss.iiop-openjdk.orb-service]",

        "jboss.naming.context.java.comp.ADSR_OTC_App.ADSR_EnhanceJaf_EJB.SessionSignOffMDB.ORB is missing [jboss.iiop-openjdk.orb-service]",

        "jboss.deployment.subunit.\"ADSR_OTC_App.ear\".\"ADSR_Common_CommandController_EJB.jar\".component.CommandController.EjbIIOPService is missing [jboss.iiop-openjdk.ior-security-config, jboss.iiop-openjdk.naming-service, jboss.iiop-openjdk.orb-service, jboss.iiop-openjdk.poa-service.irpoa]",

        "jboss.naming.context.java.comp.ADSR_OTC_App.ADSR_Common_CommandController_EJB.CommandController.ORB is missing [jboss.iiop-openjdk.orb-service]",

        "jboss.naming.context.java.comp.ADSR_OTC_App.ADSR_EnhanceJaf_EJB.PersonalizationBean.ORB is missing [jboss.iiop-openjdk.orb-service]",

        "jboss.naming.context.java.comp.ADSR_OTC_App.ADSR_EnhanceJaf_EJB.EntController.ORB is missing [jboss.iiop-openjdk.orb-service]",

        "jboss.naming.context.java.comp.ADSR_OTC_App.ADSR_EnhanceJaf_EJB.TimerServiceBean.ORB is missing [jboss.iiop-openjdk.orb-service]"

     

    jboss-ejb3.xml

    <?xml version="1.0" encoding="UTF-8"?>

    <jboss:ejb-jar xmlns:jboss="http://www.jboss.com/xml/ns/javaee"

                   xmlns="http://java.sun.com/xml/ns/javaee"

                   xmlns:iiop="urn:iiop"

                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                   xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-ejb3-2_0.xsd

                      http://java.sun.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-ejb3-spec-2_0.xsd

                      urn:iiop http://www.jboss.org/j2ee/schema/jboss-ejb-iiop_1_0.xsd"

                   version="3.1"

                   impl-version="2.0">

      <description>Command EJB</description>

      <display-name>Command EJB</display-name>

      <enterprise-beans>

      <session>

      <display-name>CommandController</display-name>

      <ejb-name>CommandController</ejb-name>

      <home>com.shkco.adsr.common.transport.controller.impl.ejb.CommandAppControllerHome</home>

      <remote>com.shkco.adsr.common.transport.controller.impl.ejb.CommandAppControllerImpl</remote>

      <ejb-class>com.shkco.adsr.common.transport.controller.impl.ejb.CommandAppControllerBean</ejb-class>

      <session-type>Stateless</session-type>

      <transaction-type>Bean</transaction-type>

      <ejb-local-ref>

      <ejb-ref-name>ejb20/TimerServiceLocalHome</ejb-ref-name>

      <ejb-ref-type>Session</ejb-ref-type>

      <local-home>com.shkco.jaf.application.security.service.provider.ejb.TimerServiceLocalHome</local-home>

      <local>com.shkco.jaf.application.security.service.provider.ejb.TimerServiceLocal</local>

      <ejb-link>TimerServiceBean</ejb-link>

      </ejb-local-ref>

      <resource-ref>

      <res-ref-name>mail/MailSession</res-ref-name>

      <res-type>javax.mail.Session</res-type>

      <jndi-name>java:/mail/MailSession</jndi-name>

      <res-auth>Container</res-auth>

      <res-sharing-scope>Shareable</res-sharing-scope>

      </resource-ref>

      <resource-ref>

      <res-ref-name>mail/MailSession2</res-ref-name>

      <res-type>javax.mail.Session</res-type>

      <jndi-name>java:/mail/MailSession2</jndi-name>

      <res-auth>Container</res-auth>

      <res-sharing-scope>Shareable</res-sharing-scope>

      </resource-ref>

      <resource-ref>

      <res-ref-name>jms/adsr/QueueConnectionFactory</res-ref-name>

      <res-type>javax.jms.XAQueueConnectionFactory</res-type>

      <jndi-name>java:/XAConnectionFactory</jndi-name>

      <res-auth>Container</res-auth>

      <res-sharing-scope>Shareable</res-sharing-scope>

      </resource-ref>

      <resource-ref>

      <res-ref-name>jms/adsr/TopicConnectionFactory</res-ref-name>

      <res-type>javax.jms.XATopicConnectionFactory</res-type>

      <jndi-name>java:/XAConnectionFactory</jndi-name>

      <res-auth>Container</res-auth>

      <res-sharing-scope>Shareable</res-sharing-scope>

      </resource-ref>

      </session>

      </enterprise-beans>

      <assembly-descriptor>

            <iiop:iiop>

                <ejb-name>CommandController</ejb-name>

                <iiop:binding-name>ejb/OM_CommandControllerHome</iiop:binding-name>

            </iiop:iiop>

      </assembly-descriptor>

    </jboss:ejb-jar>