3 Replies Latest reply on Dec 21, 2003 1:38 PM by abunginabru

    jboss.bind.address

    Sven Baumgarten Newbie

      Hello!

      I had some problems to get jboss3.2.2 running. I compared the jboss-service.xml from jboss3.2.2.RC2 and jboss3.2.2. After deleting any

      ${jboss.bind.address}
      ${jboss.bind.address}

      tags jboss3.2.2 runs fine.

      Now my question: What are these tags for? How to use them right?

      regards
      Sven

        • 1. Re: jboss.bind.address
          Jon Barnett Master

          The tags are to allow finer grain control on address binding for the server and its services.

          By default, it should be set to "0.0.0.0". By -b=localhost or --host =localhost or whatever you specify (hostname or address) for these args, you should be able to override the default for jboss.bind.address when running run.sh (which passes the arguments to run.jar). This bind value is then used for the bootstrapping of your services. You can also use a JAVA_OPTS="-Djboss.bind.address=localhost" for example, in JBOSS_HOME/bin/jboss.conf.

          It may have been better to figure out which of your services was unable to bind across the interfaces and determine if the network configuration of your system was at fault, rather than removing binding control over all services. YMMV.

          • 2. Re: jboss.bind.address
            stephen Newbie

            Greetings,

            I try set -Djboss.bind.address=x.x.x.x in JVM startup option, but seems in the jboss boot.log it still display the jboss.bind.address: 0.0.0.0.

            Jboss 3.2.2 just can't startup unless i changed manually the jboss-service.xml file the jboss.bind.address parameter to the correct ip address of my network interface.

            Can someone show me to correctly fix this? I am using windows xp?

            Regards,
            Stephen

            • 3. Re: jboss.bind.address
              abunginabru Newbie

              I had this problem too.. but found a fix for that works for me (at least for the jboss-3.2.3 release).

              Find the jboss-service.xml file in your server instance's conf directory and create a tag like:



              ./conf/local.properties



              Then create a file called local.properties in your conf directory containing something like:

              jboss.bind.address=<your bind address>

              All occurences of ${jboss.bind.address} in all config xmls for the given instance should then be translated appropriately.

              If you don't need to use it, you may want to remove references to the org.jboss.varia.property.SystemPropertiesService mbean in the deploy/jboss-service.xml to stop the exception which is thrown when the mbean deployment is repeated.

              Good luck!

              abung