3 Replies Latest reply on Mar 6, 2009 1:34 AM by Peter Johnson

    Does twiddle requires -b 0.0.0.0?

    Alexandre Gomes Newbie

      Look the facts I'm facing with JBoss 4.2.2.GA and tell me if this is the expected behaviour:

      First, I started JBoss with:

      run.sh
      


      and I got:

      ~/Documents/sea/edu/jboss_tuning/app/jboss-4.2.2.GA/bin$ ./twiddle.sh get jboss.system:type=ServerInfo HostAddress
      10:54:35,761 ERROR [Twiddle] Exec failed
      org.jboss.util.NestedRuntimeException: - nested throwable: (javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 192.168.1.17; nested exception is:
       java.net.ConnectException: Connection refused])
       at org.jboss.console.twiddle.Twiddle$1.getServer(Twiddle.java:143)
       at org.jboss.console.twiddle.command.MBeanServerCommand.getMBeanServer(MBeanServerCommand.java:59)
       at org.jboss.console.twiddle.command.GetCommand.execute(GetCommand.java:149)
       at org.jboss.console.twiddle.Twiddle.main(Twiddle.java:305)
      


      Then, I started JBoss with:

      run.sh -b 192.168.1.17
      


      and got this time:

      ~/Documents/sea/edu/jboss_tuning/app/jboss-4.2.2.GA/bin$ ./twiddle.sh get jboss.system:type=ServerInfo HostAddress
      11:05:41,966 ERROR [Twiddle] Exec failed
      org.jboss.util.NestedRuntimeException: Could not obtain connection to any of these urls: localhost:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]; - nested throwable: (javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]]])
      


      So, I tried:

      run.sh -b 0.0.0.0


      and, finally, there it goes:

      ~/Documents/sea/edu/jboss_tuning/app/jboss-4.2.2.GA/bin$ ./twiddle.sh get jboss.system:type=ServerInfo HostAddress
      HostAddress=192.168.1.17
      



      Is that correct? Should I bind JBoss AS to every interfaces to get twiddle working?

      thanks