Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-3481

Offline deployer throws BIND Exception when port 1099 is in use

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.1, 2.0.x, 2.1
    • 2.0.2, 2.1
    • deployment
    • Security Level: public (Regular issues)
    • None
    • G 2.0.1 - Running multiple instances

    Description

      Offline deployer throws Bind Exception when port 1099 is in use. Here is a scenario steps in which the problem is experienced.

      1. Extract G-2.0.1-Tomcat distro to C:\
      2. Create a dir "myserver" under C:\geronimo-j2ee-tomcat-2.0.1 and copy C:\geronimo-j2ee-tomcat-2.0.1\var to C:\geronimo-j2ee-tomcat-2.0.1\myserver\var (all sub-directories).
      3. Edit C:\geronimo-j2ee-tomcat-2.0.1\myserver\var\config-substitutions.properties to set PortOffset=10.
      4. Open a command window and start Geronimo. Since org.apache.geronimo.server.name is not set, this will start the default server instance.
      5. Open a second command window, set GERONIMO_OPTS=-Dorg.apache.geronimo.server.name=myserver. This will be command window to run the second server instance with name "myserver"
      6. Run deploy.bat --offline list-modules.

      At step 6, I am getting a BIND Exception since port 1099 is in use (by the default server instance) and the offline deployer is attempting to start rmi naming on port 1099. Since, this deploy command is run against second server instance, I would expect that it uses the configuration properties of "myserver" in which case it should use port 1109 to start rmi-naming if at all there is a need. When port 1099 is not in use, the offline deployer works as expected by updating proper config.xml file when a configuration is deployed/undeployed.

      Attachments

        1. GERONIMO-3481-1.patch
          17 kB
          David Jencks
        2. GERONIMO-3481-weird.patch
          0.6 kB
          Vamsavardhana Reddy
        3. GERONIMO-3481-2.patch
          77 kB
          David Jencks
        4. GERONIMO-3481-2a.patch
          2 kB
          David Jencks
        5. GERONIMO-3481-3.patch
          83 kB
          David Jencks
        6. GERONIMO-3481-for-2.0.patch
          2 kB
          Vamsavardhana Reddy

        Issue Links

          Activity

            People

              vamsic Vamsavardhana Reddy
              vamsic Vamsavardhana Reddy
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: