glassfish
  1. glassfish
  2. GLASSFISH-5060

Get the context from a linux server in a windows client

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 9.0pe
    • Fix Version/s: 4.0
    • Component/s: jms
    • Labels:
      None
    • Environment:

      Operating System: Linux
      Platform: Linux

    • Issuezilla Id:
      5,060

      Description

      I need to listen remotely to as jms Topic.
      In our linux debian server (the connection factory jms/sisTopics is defined, in
      there is no firewall problem with the port 3700)

      I’m trying to connect from a windows client. The glassfish libraries I’m using
      are from the glassfish-installer-v2ur2-b04-windows.jar release.

      The code I have to connect is the following one:

      Properties props = new Properties();
      props.setProperty("java.naming.factory.initial",
      "com.sun.enterprise.naming.SerialInitContextFactory");
      props.setProperty("java.naming.factory.url.pkgs", "com.sun.enterprise.naming");
      props.setProperty("java.naming.factory.state",
      "com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");
      props.setProperty("org.omg.CORBA.ORBInitialHost", "192.168.215.85");
      props.setProperty("org.omg.CORBA.ORBInitialPort", "3700");
      InitialContext ic = new InitialContext(props);
      Object a = ic.lookup("jms/sisTopics");

      The exception happens in the line from the new InitialContext(props)
      I have the exception:
      "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT;
      hostname: 127.0.0.1; port: 3700" org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor
      code: 201 completed: No

      I’ve tried with InitialContext() and setting the parameter as a JVM parameter
      -Dorg.omg.CORBA.ORBInitialHost=192.168.215.85 and it happens the same.

      I’ve executed the code in the server and it runs properly, but the case is that
      I must have it running remotely.
      Any clue about this?

        Activity

        Hide
        elena_g added a comment -

        We’ve solved the problem.

        The computer where the glassfish server is running has two IP addresses.
        In order to make it run we had to configure the network addresses from which it
        is listening the orb listeners
        (From the administrator site, in the common tasks list we had to select ORB –
        IIOP Listeners, there we had to change the network addresses from the
        orb-listeners-1 to 192.168.215.85

        Show
        elena_g added a comment - We’ve solved the problem. The computer where the glassfish server is running has two IP addresses. In order to make it run we had to configure the network addresses from which it is listening the orb listeners (From the administrator site, in the common tasks list we had to select ORB – IIOP Listeners, there we had to change the network addresses from the orb-listeners-1 to 192.168.215.85
        Hide
        Sivakumar Thyagarajan added a comment -

        Requesting Satish to investigate and close if not relevant

        Show
        Sivakumar Thyagarajan added a comment - Requesting Satish to investigate and close if not relevant
        Hide
        sanandal added a comment -

        "Reclassifying as P4 because this issue is not deemed "must fix" for this v2.1
        release whose primary release driver is SailFin.
        This issue will be scrubbed after this release and will be given the right
        priority for the next release."

        Show
        sanandal added a comment - "Reclassifying as P4 because this issue is not deemed "must fix" for this v2.1 release whose primary release driver is SailFin. This issue will be scrubbed after this release and will be given the right priority for the next release."
        Hide
        Tom Mueller added a comment -

        Bulk update to change fix version to "not determined" for all issues still open but with a fix version for a released version.

        Show
        Tom Mueller added a comment - Bulk update to change fix version to "not determined" for all issues still open but with a fix version for a released version.
        Hide
        David Zhao added a comment -

        In GF4.0, orb-listener-1 binds to all network addresses by default (0.0.0.0). So closing the defect accordingly.

        Show
        David Zhao added a comment - In GF4.0, orb-listener-1 binds to all network addresses by default (0.0.0.0). So closing the defect accordingly.

          People

          • Assignee:
            David Zhao
            Reporter:
            elena_g
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: