5 Replies Latest reply on Apr 26, 2005 10:07 AM by fadyek

    java.net.BindException for JBoss3.2.4 on Windows XP

    sahabs

      Hi there
      I'm getting the following exception while starting JBoss3.2.4 server on Windows XP. However I don't get this exception when I start JBoss4 on Windows XP.
      Can you help to resolve this exception?
      Regards

      14:06:59,359 INFO [Server] JBoss (MX MicroKernel) [3.2.4 (build: CVSTag=JBoss_3
      _2_4 date=200406040847)] Started in 2m:15s:922ms
      14:06:59,359 INFO [Tomcat5] Saw org.jboss.system.server.started notification, s
      tarting connectors
      14:06:59,531 ERROR [Http11Protocol] Error starting endpoint
      java.net.BindException: Address already in use: JVM_Bind:8080
      at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoi
      nt.java:264)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpo
      int.java:281)
      at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:171
      )
      at org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:
      1527)
      at org.jboss.web.tomcat.tc5.Tomcat5.startConnectors(Tomcat5.java:369)
      at org.jboss.web.tomcat.tc5.Tomcat5.handleNotification(Tomcat5.java:394)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.notification.NotificationListenerProxy.invoke(Notificati
      onListenerProxy.java:138)
      at $Proxy30.handleNotification(Unknown Source)
      at javax.management.NotificationBroadcasterSupport.handleNotification(No
      tificationBroadcasterSupport.java:98)
      at javax.management.NotificationBroadcasterSupport.sendNotification(Noti
      ficationBroadcasterSupport.java:81)
      at org.jboss.system.server.ServerImpl.sendNotification(ServerImpl.java:7
      86)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:435)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:311)
      at org.jboss.Main.boot(Main.java:144)
      at org.jboss.Main$1.run(Main.java:389)
      at java.lang.Thread.run(Thread.java:534)
      14:06:59,531 WARN [Tomcat5] Failed to startConnectors
      LifecycleException: Protocol handler start failed: java.net.BindException: Addr
      ess already in use: JVM_Bind:8080
      at org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:
      1529)
      at org.jboss.web.tomcat.tc5.Tomcat5.startConnectors(Tomcat5.java:369)
      at org.jboss.web.tomcat.tc5.Tomcat5.handleNotification(Tomcat5.java:394)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.notification.NotificationListenerProxy.invoke(Notificati
      onListenerProxy.java:138)
      at $Proxy30.handleNotification(Unknown Source)
      at javax.management.NotificationBroadcasterSupport.handleNotification(No
      tificationBroadcasterSupport.java:98)
      at javax.management.NotificationBroadcasterSupport.sendNotification(Noti
      ficationBroadcasterSupport.java:81)
      at org.jboss.system.server.ServerImpl.sendNotification(ServerImpl.java:7
      86)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:435)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:311)
      at org.jboss.Main.boot(Main.java:144)
      at org.jboss.Main$1.run(Main.java:389)
      at java.lang.Thread.run(Thread.java:534)

        • 1. Re: java.net.BindException for JBoss3.2.4 on Windows XP
          kabirkhan

          Do
          netstat -ao
          to get a list of all ports already being listened on along with the process id listening on that port.

          • 2. Re: java.net.BindException for JBoss3.2.4 on Windows XP
            sahabs

            Thanks. It worked for JBoss3.2.

            • 3. Re: java.net.BindException for JBoss3.2.4 on Windows XP
              perfectdaytochasetornados

              Hi I'm getting the same problem on Windows 2000. I have run netstat -a & nothing is using port 8080 (nor any of the other ports which JBoss claims are bound!). The scenario is as follows. I can startup JBoss3.2.4 once & it seems to start up OK. I then shut it down & it reports no errors (have used ctr-C, the shutdown script & the web jmx console- all with the same results). Then when I try to start it again it tells me a whole load of ports are bound, see end of message for some errors from the log. It seems there may be some sort of timeout involved here as if I leave it for a while & then start it up again it seems to be OK. Does anyone know what is going on here?

              Error initializing endpoint
              java.net.BindException: Address already in use: JVM_Bind:8080

              java.rmi.server.ExportException: Port already in use: 4444; nested exception is:
              java.net.BindException: Address already in use: JVM_Bind
              Cause: java.rmi.server.ExportException: Port already in use: 4444; nested exception is:
              java.net.BindException: Address already in use: JVM_Bind
              ObjectName: jboss:service=Naming
              state: FAILED
              I Depend On:
              Depends On Me: MBeanException: java.rmi.server.ExportException: Port already in use: 1098; nested exception is:
              java.net.BindException: Address already in use: JVM_Bind
              Cause: java.rmi.server.ExportException: Port already in use: 1098;

              Thanks P ;-)

              • 4. Re: java.net.BindException for JBoss3.2.4 on Windows XP
                perfectdaytochasetornados

                Have discovered what the problem is on my machine. We are running Microsoft Firewall Client & this seems to interfere with the smooth running of JBoss.

                Hope this info is useful for someone :-)

                P

                • 5. Re: java.net.BindException for JBoss3.2.4 on Windows XP
                  fadyek

                  Thank you so much perfectdaytochasetornados for this help. It took me long time facing this problem without any solution