3 Replies Latest reply on May 5, 2014 5:08 AM by ctomc

    How to add jacorb module to OOTB standalone.xml configuration

    techy_bolek

      I added the following to standalone.xml:

      <extensions> ... ... <extension module="org.jacorb"/> </extension> 

      That module contains a dependency to module "org.jacorb" which contains the actual ORB implementation. However, I get a class not found error when trying to instantiate the ORB. The ORB class, contained in the module org.jacorb, is not being found:

       15:03:43,021 ERROR [stderr] (default task-4) java.lang.ClassNotFoundException: org.jacorb.orb.ORB from [Module "deployment.SM_Web.war:main" from Service Module Loader] 15:03:43,131 ERROR [stderr] (default task-4) at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) 15:03:43,131 ERROR [stderr] (default task-4) at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) 15:03:43,132 ERROR [stderr] (default task-4) at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) 15:03:43,132 ERROR [stderr] (default task-4) at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) 15:03:43,132 ERROR [stderr] (default task-4) at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) 15:03:43,172 ERROR [stderr] (default task-4) at java.lang.Class.forName0(Native Method) 15:03:43,172 ERROR [stderr] (default task-4) at java.lang.Class.forName(Class.j
        • 1. Re: How to add jacorb module to OOTB standalone.xml configuration
          techy_bolek

          I cannot get the standard Sun ORB to instantiate either. I set the "org.omg.CORBA.ORBClass" property to "com.sun.corba.se.impl.orb.ORBImpl" and I get:

          java.lang.ClassNotFoundException: com.sun.corba.se.impl.orb.ORBImpl from [Module "deployment.SM_Web.war:main" from Service Module Loader]

          • 2. Re: How to add jacorb module to OOTB standalone.xml configuration
            techy_bolek

            Got it to work by placing the following jboss-deployment-structure.xml under WEB-INF:

             

             

                <jboss-deployment-structure>

                  <deployment>

                     <dependencies>

                          <module name="org.jacorb" />

                    </dependencies>

                  </deployment>

                </jboss-deployment-structure>

            • 3. Re: How to add jacorb module to OOTB standalone.xml configuration
              ctomc

              You only registered jacorb extension but you didn't activate it.

               

              you are missing subsystem configuration of it to be activated.

               

              add:

              <subsystem xmlns="urn:jboss:domain:jacorb:1.3">

                     <orb socket-binding="jacorb" ssl-socket-binding="jacorb-ssl">

                         <initializers transactions="spec" security="identity"/>

                     </orb>

                 </subsystem>

              under subsystems

              and add

              <socket-binding name="jacorb" interface="unsecure" port="3528"/>

                 <socket-binding name="jacorb-ssl" interface="unsecure" port="3529"/>

              on bottom under socket-bindings.

               

              you can also just run server with

              standalone.sh|bat -c standalone-full.xml

              which already has jacorb enabled.

               

              by manually importing module as dependency you only get its classpath but none of the integration with the server, which is what subsystem takes care of.