7 Replies Latest reply on Mar 18, 2011 6:03 AM by kiran.kumar M

    Jboss Port 8180 already in use

    jbossdon Newbie

      Hi, i am new to the site and need assistance please.  Just installed Jboss on SVR 2K8 x64, when starting up the Jboss service, the Server Log shows that Port 8180 is already in use. Any advise?

        • 1. Jboss Port 8180 already in use
          jbossdon Newbie

          Extracts from the Server Log:

           

          2011-02-22 15:05:01,802 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=jboss:service=WebService state=Create mode=Manual requiredState=Installed
          java.lang.Exception: Port 8180 already in use.
          at org.jboss.web.WebServer.start(WebServer.java:233)
          at org.jboss.web.WebService.startService(WebService.java:322)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
          at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189)
          at $Proxy38.start(Unknown Source)
          at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
          at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
          at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction

          2011-02-22 15:05:01,817 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Real: name=vfsfile:/D:/jboss-5.1.0.GAx64/server/RLLIVE/conf/jboss-service.xml state=PreReal mode=Manual requiredState=Real
          org.jboss.deployers.spi.DeploymentException: Error deploying: jboss:service=WebService
          at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
          at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:118)
          at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
          at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy

          2011-02-22 15:05:05,122 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to PreInstall: name=PostJBossWebMetadataDeployer state=Real
          java.lang.NoClassDefFoundError: org/jboss/metadata/web/jboss/JBossWebMetaData
          at java.lang.Class.getDeclaredMethods0(Native Method)
          at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
          at java.lang.Class.getDeclaredMethods(Unknown Source)
          at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getDeclaredMethods

          • 2. Jboss Port 8180 already in use
            kiran.kumar M Newbie

            give some  addtional details , which OS are you using , which version of jboss AS,

            --kiran.kumar

            • 3. Jboss Port 8180 already in use
              jbossdon Newbie

              VM Server MS 2008 64 bit. JBOSS 5.1

              • 4. Jboss Port 8180 already in use
                kiran.kumar M Newbie

                try if u can run tcpview provided by microsoft. It will tell u exactly who is using your port.

                http://technet.microsoft.com/en-us/sysinternals/bb897437

                 

                If u find that 8180 is used by another program  you shutdown or kill using taskmanager.

                If you cannot stop the above process - you have an option to change the ports used by jboss

                 

                edit the following file to any other port above 1024.

                jboss-5.1.0.GA/server/standard/deploy/jbossweb.sar/server.xml

                 

                remember to restart jboss after you change server.xml

                kiran.kumar

                • 5. Jboss Port 8180 already in use
                  jbossdon Newbie

                  Thanks for your responses. I ran tcpview but port 8180 does not reflect anywhere. Also changed the port to and re-started jboss but then it comes up with the same issue that the new port assigned is in use. Forgot to mention that this Server is a Virtual Server.

                  • 6. Jboss Port 8180 already in use
                    Peter Johnson Master

                    1) Have you made any changes to the windows/system32/drivers/etc/hosts file?

                     

                    2) How are you starting JBoss AS? Specifically, are you supplying the -b option?

                     

                    I ask the above because improperly configured hostname/ipaddress mappings can cause this problem.

                     

                    3) Are you running a firewall? If so, which one?

                    • 7. Jboss Port 8180 already in use
                      kiran.kumar M Newbie

                      Check the antivirus software. It seems antirvirus is blocking java from opening a port.