Cargo
  1. Cargo
  2. CARGO-1111

Unable to set bind address to 0.0.0.0 when starting JBoss 7.1.x

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.2
    • Fix Version/s: 1.2.3
    • Component/s: JBoss
    • Labels:
      None
    • Complexity:
      Intermediate
    • Number of attachments :
      0

      Description

      Setting the cargo.hostname property to 0.0.0.0 does not make JBoss listen on all interfaces.

      The work-around is to set jboss.bind.address system variable. This is however containter-specific.

                  <plugin>
                      <groupId>org.codehaus.cargo</groupId>
                      <artifactId>cargo-maven2-plugin</artifactId>
                      <version>1.2.1</version>
                      <configuration>
                          <configuration>
                              <properties>
                                  <cargo.jvmargs><![CDATA[-Xdebug -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=n]]></cargo.jvmargs>
                                  <cargo.hostname>0.0.0.0</cargo.hostname> <!-- DOES NOT WORK -->
                              </properties>
                          </configuration>
                          <container>
                              <containerId>jboss71x</containerId>
                              <artifactInstaller>
                                  <groupId>org.jboss.as</groupId>
                                  <artifactId>jboss-as-dist</artifactId>
                                  <version>${jboss.version}</version>
                                  <type>zip</type>
                              </artifactInstaller>
                              <systemProperties>
                                  <jboss.bind.address>0.0.0.0</jboss.bind.address> <!-- IT WORKS -->
                              </systemProperties>
                          </container>
                          <deployer>
                              <type>installed</type>
                              <deployables>
                                  <deployable>
                                      <groupId>${project.groupId}</groupId>
                                      <artifactId>${project.artifactId}</artifactId>
                                      <type>war</type>
                                      <properties>
                                          <context>${project.artifactId}</context>
                                      </properties>
                                  </deployable>
                              </deployables>
                          </deployer>
                      </configuration>
                  </plugin>
      

        Issue Links

          Activity

          Hide
          Savas Ali Tokmen added a comment -

          Fixed revision 3330.

          Please note that the CI being down, you will have to build CARGO 1.2.3-SNAPSHOT yourself to verify the fix. Details on http://cargo.codehaus.org/Building

          Show
          Savas Ali Tokmen added a comment - Fixed revision 3330. Please note that the CI being down, you will have to build CARGO 1.2.3-SNAPSHOT yourself to verify the fix. Details on http://cargo.codehaus.org/Building

            People

            • Assignee:
              Savas Ali Tokmen
              Reporter:
              Damian Nowak
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: