4 Replies Latest reply on Sep 10, 2009 4:19 PM by peterj

    How to bind to all interfaces on JBoss 5.1

      I have a JBoss 5.1.0.GA installation which starts and runs fine. But if I change the run.bat to use either -b0.0.0.0 or -Djboss.bind.address=0.0.0.0 I get an exception while trying to start up the AS:

      09:16:13,590 FATAL [arjLoggerI18N] [com.arjuna.ats.internal.arjuna.recovery.fail] RecoveryManagerImple: cannot bind to socket on address /0.0.0.0 and port 4,712
      09:16:13,590 ERROR [AbstractKernelController] Error installing to Create: name=TransactionManager state=Configured
      com.arjuna.ats.arjuna.exceptions.FatalError: Recovery manager already active (or recovery port and address are in use)!
       at com.arjuna.ats.internal.arjuna.recovery.RecoveryManagerImple.<init>(RecoveryManagerImple.java:164)


      All I have done is downloaded the zip file, unzipped it, and edited the run.bat as described above. The installation path does not contain spaces. I am on Windows XP.

      Any help would be greatly appreciated. :)


        • 1. Re: How to bind to all interfaces on JBoss 5.1
          peterj

          Is this a typo: -b0.0.0.0
          It should be: -b 0.0.0.0

          How did you change the run.bat? According to the error message you appear to have set the bind address to "/0.0.0.0" and not "0.0.0.0".

          • 2. Re: How to bind to all interfaces on JBoss 5.1
            peterj

            Also, I recommend that instead of changing run.bat you create a new batch file that contains:

            call run.bat -b 0.0.0.0

            • 3. Re: How to bind to all interfaces on JBoss 5.1

              Thank you for your quick reply PeterJ!

              You are right, I meant -b 0.0.0.0 but the log definitely says "/0.0.0.0", I'm not sure why.

              Anyway, just tried again and it seems a good old fashion Windows reboot fixed the problem. I should have known, I've seen this with other ports Windows randomly takes. I would add this port to the list of reserved ports in Windows (so it won't take it) but I'm not sure what "port 4,712" means... I assume 4712.

              Anyway, thank you again for your help, I hope this helps others as well.

              • 4. Re: How to bind to all interfaces on JBoss 5.1
                peterj

                You can use netstat, or better yet, TCPView from sysinternal, to see what apps are using a port (4712 in this case). Some Windows apps, notably the MS Sync Center and virus scanners, seem to take random ports that JBoss AS later wants.