0 Replies Latest reply on Jun 19, 2014 12:07 PM by rell13

    unable to start jboss instance properly due to "Address already in use" error

    rell13

      Hi, All,

       

      I am new here in the community and I need your help. We are running JBoss 4.0.2 on Solaris 8. Whenever I start the first JBoss instance, I am seeing this error below:

       

      -----output truncated-----

      11:24:01,075 ERROR [UILServerILService] Starting failed jboss.mq:service=InvocationLayer,type=UIL2

      java.net.BindException: Address already in use

              at java.net.PlainSocketImpl.socketBind(Native Method)

              at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)

              at java.net.ServerSocket.bind(ServerSocket.java:319)

      -----output truncated-----


      The error doesn't tell me the port number that is in used so I tried to search and found out that the port being used by the java instance above (or whatever it is called) is 8093. I found it in uil2-service.xml:

       

      -----output truncated-----

      <attribute name="ServerBindPort">8093</attribute>

      -----output truncated-----

       

      The port above is not being used by any service after I shutdown JBoss (I can check it by using lsof or netstat). I also make sure that after the shutdown, there is no service left running including java instances.

       

      [root@host1:/tmp]# /usr/bin/ps -fu jboss | grep -- -c

      [root@host1:/tmp]# /usr/bin/ps -ef | grep -v root | egrep -i "jboss|java"

      [root@host1:/tmp]#

       

      Thanks.