4 Replies Latest reply on Oct 27, 2012 7:33 PM by Arthur Oliveira de Melo

    Port 8083 already in use.

    neeelemab Newbie

      I'm using jBOss application server 4.0.3SP1. Previously itused to work fine, with no error in the logs. But recently, while starting itsays "Port 8083 already in use" in server.log and the server doesn'tstart. Through netstat command I found that port 8083 is not being used by anyother services.

        Inbindings-jboss-beans.xml, if I change "8083" which is used forWebService to something else, like 8084, it still throws the same error"Port 8084 already in use".

        I don't think I evermade any change when it was working fine. All of a sudden this happens. Pleasehelp me.

       

      I am using windows 7 OS and Java 1.6.

       

       

      00:41:19,142 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Server VM 17.0-b17,Sun Microsystems Inc.

      00:41:19,142 INFO  [ServerInfo] OS-System: Windows 7 6.1,x86

      00:41:19,539 INFO  [Server] Core system initialized

      00:41:20,742 INFO  [WebService] Using RMI server codebase: http://nb36732:8083/

      00:41:20,755 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml

      00:41:20,850 WARN  [ServiceController] Problem starting service jboss:service=WebService

      java.lang.Exception: Port 8083 already in use.

              at org.jboss.web.WebServer.start(WebServer.java:221)

              at org.jboss.web.WebService.startService(WebService.java:325)

              at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)

              at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)

              at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)

              at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)

              at $Proxy0.start(Unknown Source)

              at org.jboss.system.ServiceController.start(ServiceController.java:428)

              at org.jboss.system.ServiceController.start(ServiceController.java:446)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)

              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)

              at $Proxy4.start(Unknown Source)

              at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)

              at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)

              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)

              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)

              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

              at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)

              at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)

              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)

              at $Proxy5.deploy(Unknown Source)

              at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)

              at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)

              at org.jboss.Main.boot(Main.java:187)

              at org.jboss.Main$1.run(Main.java:438)

              at java.lang.Thread.run(Thread.java:619)

      Caused by: java.net.BindException: Cannot assign requested address: JVM_Bind

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

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

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

              at java.net.ServerSocket.<init>(ServerSocket.java:185)

              at org.jboss.web.WebServer.start(WebServer.java:215)

              ... 50 more

      00:41:21,118 WARN  [ServiceController] Problem starting service jboss:service=Naming

      java.rmi.server.ExportException: Port already in use: 10981; nested exception is:

              java.net.BindException: Cannot assign requested address: JVM_Bind

              at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:310)

              at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:218)

              at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:393)

              at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:129)

              at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:190)

              at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:293)

              at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:256)

              at org.jnp.server.Main.initJnpInvoker(Main.java:299)

              at org.jnp.server.Main.start(Main.java:262)

              at org.jboss.naming.NamingService.startService(NamingService.java:221)

              at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)

              at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)

              at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

              at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)

              at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)

              at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)

              at $Proxy0.start(Unknown Source)

              at org.jboss.system.ServiceController.start(ServiceController.java:428)

              at org.jboss.system.ServiceController.start(ServiceController.java:446)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)

              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)

              at $Proxy4.start(Unknown Source)

              at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)

              at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)

              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)

              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)

              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

              at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)

              at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)

              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)

              at $Proxy5.deploy(Unknown Source)

              at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)

              at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)

              at org.jboss.Main.boot(Main.java:187)

              at org.jboss.Main$1.run(Main.java:438)

              at java.lang.Thread.run(Thread.java:619)

      Caused by: java.net.BindException: Cannot assign requested address: JVM_Bind

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

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

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

              at java.net.ServerSocket.<init>(ServerSocket.java:185)

              at org.jboss.net.sockets.DefaultSocketFactory.createServerSocket(DefaultSocketFactory.java:105)

              at org.jboss.net.sockets.DefaultSocketFactory.createServerSocket(DefaultSocketFactory.java:80)

              at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:649)

              at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:299)

              ... 61 more

      00:41:21,799 WARN  [ServiceController] Problem starting service jboss:service=invoker,type=jrmp

      java.rmi.server.ExportException: Port already in use: 4444; nested exception is:

              java.net.BindException: Cannot assign requested address: JVM_Bind

              at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:310)

              at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:218)

              at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:393)

              at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:129)

              at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:190)

              at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:293)

              at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:256)

              at org.jboss.invocation.jrmp.server.JRMPInvoker.exportCI(JRMPInvoker.java:437)

              at org.jboss.invocation.jrmp.server.JRMPInvoker.startService(JRMPInvoker.java:359)

              at org.jboss.invocation.jrmp.server.JRMPInvoker$1.startService(JRMPInvoker.java:136)

              at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)

              at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)

              at org.jboss.invocation.jrmp.server.JRMPInvoker.jbossInternalLifecycle(JRMPInvoker.java:631)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)

              at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)

              at $Proxy0.start(Unknown Source)

              at org.jboss.system.ServiceController.start(ServiceController.java:428)

              at org.jboss.system.ServiceController.start(ServiceController.java:446)

              at org.jboss.system.ServiceController.start(ServiceController.java:446)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)

              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)

              at $Proxy4.start(Unknown Source)

              at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)

              at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)

              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)

              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)

              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

              at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)

              at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)

              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)

              at $Proxy5.deploy(Unknown Source)

              at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)

              at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)

              at org.jboss.Main.boot(Main.java:187)

              at org.jboss.Main$1.run(Main.java:438)

              at java.lang.Thread.run(Thread.java:619)

      Caused by: java.net.BindException: Cannot assign requested address: JVM_Bind

        • 1. Port 8083 already in use.
          iabughosh Master

          Dear Neelema,

          try this application :

          http://www.softpedia.com/get/Network-Tools/Network-Information/TCPView.shtml

          it will show you all the assigned ports and their applications.

           

          regards.

          • 2. Port 8083 already in use.
            Wolf-Dieter Fink Master

            Sometimes it might happen that a Java/JBoss process is not correct stopped.

            You might see a java process with the TaskManager.

            Also a reboot might help, but this should be the last option because if another app will block the port the problem might raise later again.

            • 3. Port 8083 already in use.
              Peter Johnson Master

              According to this line:

               

              00:41:20,742 INFO  [WebService] Using RMI server codebase: http://nb36732:8083/

               

              The app server will use nb36732 as the host name. What is the command you used to start the app server? Was it: run -b nb36732?

              From a command prompt on the Win7 machine, what happens when you ping nb36732? Has the host been renamed recently? (Note that an issue with IP address resolution for the hostname can cause port binding issues.)

               

              You are running a really, really old version for the app server. Is this the first time you have run it on Windows 7 and JDK 6? And which version of JDK 6?

               

              If the hostname isn't the issue, post the boot.log and server.log files as attachments (do not copy the log text into the post!)

              • 4. Re: Port 8083 already in use.
                Arthur Oliveira de Melo Newbie

                Good night Neelema

                I have the same problem here.

                I found one aplication are using port 8083

                I solved my problem changing the RMI port at 2 files above

                jboss/server/conf/jboss-service.xml

                 

                 

                206<mbean code="org.jboss.web.WebService"

                      207name="jboss:service=WebService">

                      208<!-- The Bind address and Port -->

                      209<attribute name="BindAddress">${jboss.bind.address}</attribute>

                      210<attribute name="Port">8083</attribute>

                 

                jboss/server/conf/jboss-serviceTemplate.xml

                   

                 

                206<mbean code="org.jboss.web.WebService"

                      207name="jboss:service=WebService">

                      208<!-- The Bind address and Port -->

                      209<attribute name="BindAddress">${jboss.bind.address}</attribute>

                      210<attribute name="Port">8083</attribute>

                 

                 

                 

                Cya