Geronimo
  1. Geronimo
  2. GERONIMO-5579

Problem with "deploy:connect" gogo command

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.0
    • Component/s: commands
    • Security Level: public (Regular issues)
    • Labels:
      None
    • Environment:

      windows platform

      Description

      I started two server instances on my local Windows platform:
      geronimo-tomcat7-javaee6-3.0-SNAPSHOT using port 1099,started with the "run Geronimo" command;
      geronimo-tomcat6-javaee5-2.2 using port 1109, started with the "startup"command.

      On the karaf shell for the geronimo-tomcat7-javaee6-3.0-SNAPSHOT server:
      I ran the "deploy:connect --port 1109"command trying to connect the geronimo-tomcat6-javaee5-2.2 server. "Connection established"was displayed.

      However,when running the "deploy:list-modules"command, it was the modules belonging to the geronimo-tomcat7-javaee6-3.0-SNAPSHOT server that was listed, indicating that it was still the
      geronimo-tomcat7-javaee6-3.0-SNAPSHOT server that was connected.

      The information on the command window is as follows:

      geronimo> deploy:disconnect
      Not connected
      geronimo> deploy:connect --hostname localhost --port 1109
      Connection established
      geronimo> deploy:list-modules
      Found 54 modules
      + org.apache.geronimo.configs/activemq-broker-blueprint/3.0-SNAPSHOT/car
      + org.apache.geronimo.configs/activemq-ra/3.0-SNAPSHOT/car
      + org.apache.geronimo.configs/aries-deployer/3.0-SNAPSHOT/car
      + org.apache.geronimo.configs/axis2-deployer/3.0-SNAPSHOT/car
      + org.apache.geronimo.configs/bval-deployer/3.0-SNAPSHOT/car
      + org.apache.geronimo.configs/client-deployer/3.0-SNAPSHOT/car
      .......

        Activity

        Hide
        Forrest Xia added a comment -

        Close this jira since Li Wen Qin has verified this fix on a latest build.

        Show
        Forrest Xia added a comment - Close this jira since Li Wen Qin has verified this fix on a latest build.
        Hide
        LiWenQin added a comment - - edited

        I have tried the testing steps described by maojia.
        All testing results are good on my local machine:
        Geronimo Application Server started
        deploy:connect --port 1109
        Connecting to Geronimo server: localhost:1109
        Username: system
        Password: *******
        Connection established
        geronimo> deploy:list-modules
        Found 103 modules
        + org.apache.geronimo.configs/activemq-broker/2.2.1-SNAPSHOT/car
        + org.apache.geronimo.configs/activemq-ra/2.2.1-SNAPSHOT/car
        + org.apache.geronimo.configs/aspectj/2.2.1-SNAPSHOT/car
        + org.apache.geronimo.configs/axis/2.2.1-SNAPSHOT/car
        + org.apache.geronimo.configs/axis-deployer/2.2.1-SNAPSHOT/car
        + org.apache.geronimo.configs/axis2-deployer/2.2.1-SNAPSHOT/car
        + org.apache.geronimo.configs/axis2-ejb-deployer/2.2.1-SNAPSHOT/car
        + org.apache.geronimo.configs/ca-helper-tomcat/2.2.1-SNAPSHOT/car
        + org.apache.geronimo.configs/client-deployer/2.2.1-SNAPSHOT/car
        ......
        geronimo> deploy:disconnect
        Disconnecting from Geronimo server
        Connection ended
        geronimo> deploy:connect --hostname localhost --port 1109
        Connecting to Geronimo server: localhost:1109
        Username: system
        Password: *******
        Connection established
        geronimo> deploy:list-modules
        Found 103 modules
        + org.apache.geronimo.configs/activemq-broker/2.2.1-SNAPSHOT/car
        + org.apache.geronimo.configs/activemq-ra/2.2.1-SNAPSHOT/car
        + org.apache.geronimo.configs/aspectj/2.2.1-SNAPSHOT/car
        ......

        Show
        LiWenQin added a comment - - edited I have tried the testing steps described by maojia. All testing results are good on my local machine: Geronimo Application Server started deploy:connect --port 1109 Connecting to Geronimo server: localhost:1109 Username: system Password: ******* Connection established geronimo> deploy:list-modules Found 103 modules + org.apache.geronimo.configs/activemq-broker/2.2.1-SNAPSHOT/car + org.apache.geronimo.configs/activemq-ra/2.2.1-SNAPSHOT/car + org.apache.geronimo.configs/aspectj/2.2.1-SNAPSHOT/car + org.apache.geronimo.configs/axis/2.2.1-SNAPSHOT/car + org.apache.geronimo.configs/axis-deployer/2.2.1-SNAPSHOT/car + org.apache.geronimo.configs/axis2-deployer/2.2.1-SNAPSHOT/car + org.apache.geronimo.configs/axis2-ejb-deployer/2.2.1-SNAPSHOT/car + org.apache.geronimo.configs/ca-helper-tomcat/2.2.1-SNAPSHOT/car + org.apache.geronimo.configs/client-deployer/2.2.1-SNAPSHOT/car ...... geronimo> deploy:disconnect Disconnecting from Geronimo server Connection ended geronimo> deploy:connect --hostname localhost --port 1109 Connecting to Geronimo server: localhost:1109 Username: system Password: ******* Connection established geronimo> deploy:list-modules Found 103 modules + org.apache.geronimo.configs/activemq-broker/2.2.1-SNAPSHOT/car + org.apache.geronimo.configs/activemq-ra/2.2.1-SNAPSHOT/car + org.apache.geronimo.configs/aspectj/2.2.1-SNAPSHOT/car ......
        Hide
        Ivan added a comment -

        Commit first step changes to trunk at revision: 1036776

        Show
        Ivan added a comment - Commit first step changes to trunk at revision: 1036776
        Hide
        Ivan added a comment -

        With full-profile server, Configurations in the client module are also requred to update, and I found client module is also loaded in the server runtime, that is not expected behavior, and duplicate objectfactory services are published ...

        Show
        Ivan added a comment - With full-profile server, Configurations in the client module are also requred to update, and I found client module is also loaded in the server runtime, that is not expected behavior, and duplicate objectfactory services are published ...
        Hide
        maojia added a comment -

        I tried the case again with a new geronimo-tomcat7-javaee6-3.0-SNAPSHOT-bin server built on 11/17/2010 and got the following error:

        geronimo> deploy:connect -p 1109
        Connecting to Geronimo server: localhost:1109
        Username: system
        Password: *******
        Error executing command: Unable to connect to server at deployer:geronimo:jmx://
        localhost:1109 – Failed to retrieve RMIServer stub: javax.naming.ConfigurationE
        xception: rmiURLContextFactory.getObjectInstance: argument must be an RMI URL St
        ring or an array of them

        Show
        maojia added a comment - I tried the case again with a new geronimo-tomcat7-javaee6-3.0-SNAPSHOT-bin server built on 11/17/2010 and got the following error: geronimo> deploy:connect -p 1109 Connecting to Geronimo server: localhost:1109 Username: system Password: ******* Error executing command: Unable to connect to server at deployer:geronimo:jmx:// localhost:1109 – Failed to retrieve RMIServer stub: javax.naming.ConfigurationE xception: rmiURLContextFactory.getObjectInstance: argument must be an RMI URL St ring or an array of them
        Hide
        Ivan added a comment -

        Commit changes to trunk at revision: 1032804.

        Show
        Ivan added a comment - Commit changes to trunk at revision: 1032804.
        Hide
        Ivan added a comment -

        First step changes are committed to trunk at rev.1029580. Use port and hostname to identify whether the expected server is the embedded one.
        Seems some new ObjectFatory impls are used in trunk, some naming related changes might be required.

        Show
        Ivan added a comment - First step changes are committed to trunk at rev.1029580. Use port and hostname to identify whether the expected server is the embedded one. Seems some new ObjectFatory impls are used in trunk, some naming related changes might be required.

          People

          • Assignee:
            Ivan
            Reporter:
            maojia
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development