0 Replies Latest reply on Aug 4, 2010 5:13 AM by varun Nidhi

    Jboss not starting properly (Error starting ServerSocket.  Bind port: 3873, bind address)

    varun Nidhi Newbie

      Hi Everyone,


      I have an EAR file which contains packaged stateless beans , ejb timers , servlets.

      The server startup is integrated with the system startup so as the system starts it starts Jboss also.

      Normally when I start system JBoss also gets started and EAR is properly deployed.


      The problem which I am facing is that sometimes when system restarts after a power outage occurs , hence starting JBoss also. Then

      it is not able to deploy ejbs, getting error:



      2010-02-03 23:49:01,141 ERROR [main - SocketServerInvoker] - Error starting Servv
      erSocket.  Bind port: 3873, bind address:
      2010-02-03 23:49:01,141 ERROR [main - Connector] - Error starting connector.
      java.net.BindException: Can't assign requested address
              at java.net.PlainSocketImpl.socketBind(Native Method)
              at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
              at java.net.ServerSocket.bind(ServerSocket.java:319)
              at java.net.ServerSocket.<init>(ServerSocket.java:185)
              at javax.net.DefaultServerSocketFactory.createServerSocket(ServerSocketFF
              at org.jboss.remoting.transport.socket.SocketServerInvoker.createServerSS
              at org.jboss.remoting.transport.socket.SocketServerInvoker.start(SocketSS
              at org.jboss.remoting.transport.Connector.start(Connector.java:322)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)Native library which allows optimal performance in production environments was nn
      ot found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Jaa
      2010-02-03 23:49:15,676 ERROR [main - Http11Protocol] - Error initializing endpoo
      java.net.BindException: Can't assign requested address:6000
              at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:500)
              at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176)
              at org.apache.catalina.connector.Connector.initialize(Connector.java:1077
              at org.apache.catalina.core.StandardService.initialize(StandardService.jj


      If after facing this error I do a stop ,start from  Jboss scripts (using shutdown.sh and run.sh) , the EAR gets deployed properly.


      Though the problem is clear thet ejb3.deployer uses port 3873 and since it is not able to bind at 3873 , ejbs deployment is unsuccessfull ,

      but  the question is why it is unable to bind at 3873.


      Can anyone please help .


      The  various details are:


      JBoss version :  4.2

      Ejb version : ejb 3

      System : MAC OS Snow Leopard Version 10.6