7 Replies Latest reply on Nov 28, 2002 1:50 PM by Maris Orbidans

    CORBA connections failed

    Stanislav Nazarenko Newbie

      Does anybody have working examples how to connect to JBoss ORB from standalone CORBA client?

      I'm trying to connect to JacORB Naming Service (from JBoss-3.0.3+Tomcat-4.1.12 bundle)
      and when I'm using IOR which comes from the startup log I get an error on the client side:

      ERROR : org.omg.CORBA.INV_OBJREF: minor code: 1398079490 completed: No
      org.omg.CORBA.INV_OBJREF: minor code: 1398079490 completed: No

      The code I use is:

      String ior = "IOR:000000000000002B49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578744578743A312E300000000000020000000000000068000102000000000D31302E3235302E37302E363600000DC8000000114A426F73732F4E616D696E672F726F6F74000000000000020000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000010000002C0000000000000001000000010000001C00000000000100010000000105010001000101090000000105010001";

      ORB orb = ORB.init(args, null);
      org.omg.CORBA.Object objRef = orb.string_to_object(ior);
      NamingContext ctx = NamingContextHelper.narrow(objRef);

      I would also like to know the port for JacORB Naming Service which is set up by default.

      Thanks.

        • 1. Re: CORBA connections failed
          Stefan Jurk Newbie

          Hi!
          that's "funny". We postet nearly the same problem. See subject "CORBA - Trouble with IOR". I think the IOR generated from JBoss-JacOrb is corrupt. We've got an working example with C++ using Mico and JacORB as a standalone ORB (not bundled with JBoss). The main difference seems to be the using of a jacorb.properties file as described in the jacorb dokumentation (www.jacorb.org). Perhaps you try out the example described there.

          If you got your Corba client work together with your JBoss already, I would be very interested in what you did to get it working.

          Hope this helps al little bit
          Stefan

          • 2. Re: CORBA connections failed
            Stefan Jurk Newbie

            Hi!
            that's "funny". We postet nearly the same problem. See subject "CORBA - Trouble with IOR". I think the IOR generated from JBoss-JacOrb is corrupt. We've got an working example with C++ using Mico and JacORB as a standalone ORB (not bundled with JBoss). The main difference seems to be the using of a jacorb.properties file as described in the jacorb dokumentation (www.jacorb.org). Perhaps you try out the example described there.

            If you got your Corba client work together with your JBoss already, I would be very interested in what you did to get it working.

            Hope this helps al little bit
            Stefan

            • 3. Re: CORBA connections failed
              Stefan Jurk Newbie

              Hi!
              that's "funny". We postet nearly the same problem. See subject "CORBA - Trouble with IOR". I think the IOR generated from JBoss-JacOrb is corrupt. We've got an working example with C++ using Mico and JacORB as a standalone ORB (not bundled with JBoss). The main difference seems to be the using of a jacorb.properties file as described in the jacorb dokumentation (www.jacorb.org). Perhaps you try out the example described there.

              If you got your Corba client work together with your JBoss already, I would be very interested in what you did to get it working.

              Hope this helps al little bit
              Stefan

              • 4. Re: CORBA connections failed
                Stefan Jurk Newbie

                Hi!
                that's "funny". We postet nearly the same problem. See subject "CORBA - Trouble with IOR". I think the IOR generated from JBoss-JacOrb is corrupt. We've got an working example with C++ using Mico and JacORB as a standalone ORB (not bundled with JBoss). The main difference seems to be the using of a jacorb.properties file as described in the jacorb dokumentation (www.jacorb.org). Perhaps you try out the example described there.

                If you got your Corba client work together with your JBoss already, I would be very interested in what you did to get it working.

                Hope this helps al little bit
                Stefan

                • 5. Re: CORBA connections failed
                  Stanislav Nazarenko Newbie

                  Hi tux2,

                  Yes, I noticed your topic just after posting mine :)

                  I will definitely post an example if I have any progress connecting to JBoss-Jacorb.

                  • 6. Re: CORBA connections failed
                    Stefan Jurk Newbie

                    Hi mescalito!
                    Did you recognize the answer for my Topic "Trouble with IOR: for Naming" from Francisco Reverbel?
                    Perhaps this helps! It's a bug in JDK1.3....

                    I'm looking forward to your solution for Jacorb/Jboss.
                    Stefan

                    • 7. Re: CORBA connections failed
                      Maris Orbidans Newbie


                      hello

                      I have written several examples of CORBA (ORBacus C++)
                      and JBoss. It also demonstrates IIOP communication between JBoss and Java client.

                      You can look at these examples and download code at
                      http://www.datapro.lv/~mariso/ejb.html


                      regards
                      Maris Orbidans