3 Replies Latest reply on May 14, 2012 12:32 PM by Wolf-Dieter Fink

    How to change default port 8080 to 80 in Jboss 7.1.1?

    Rajiv Konkimalla Newbie

      I got the following error when I changed the following line in standalone/configuration/standalone.xml file

      <socket-binding name="http" port="8080"/> to <socket-binding name="http" port="80"/>

       

      -------------------------------------------------------------------------------------------------

      13:43:29,514 ERROR [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-3) Error initializing endpoint: java.net.BindException: Address already in use: JVM_Bind /127.0.0.1:80

          at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:983) [jbossweb-7.0.13.Final.jar:]

          at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:190) [jbossweb-7.0.13.Final.jar:]

          at org.apache.catalina.connector.Connector.init(Connector.java:983) [jbossweb-7.0.13.Final.jar:]

          at org.jboss.as.web.WebConnectorService.start(WebConnectorService.java:267) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_20]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_20]

          at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_20]

       

      13:43:29,811 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.web.connector.http: org.jboss.msc.service.StartException in service jboss.web.connector.http:

       

      JBAS018007: Error starting web connector

          at org.jboss.as.web.WebConnectorService.start(WebConnectorService.java:271)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_20]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_20]

          at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_20]

      Caused by: LifecycleException:  Protocol handler initialization failed: java.net.BindException: Address already in use: JVM_Bind /127.0.0.1:80

          at org.apache.catalina.connector.Connector.init(Connector.java:985)

          at org.jboss.as.web.WebConnectorService.start(WebConnectorService.java:267)

          ... 5 more

      ------------------------------------------------------------------------------

       

      It is very clear that this port is occupied by Tomcat. Do I really need to have Tomcat for JBoss 7.1.1? If it is not mandatory then is there any configuration change to shut it down so that port is available? In worst case how to change the port of tomcat to something else and use 80 for JBoss? I would really appreciate your answers.