0 Replies Latest reply on Jan 16, 2015 2:08 PM by Bharathi Selvan Thirupathi

    How to run a Linux server on port 80 as a service ???

    Bharathi Selvan Thirupathi Newbie
      Hi,
      How to run a Linux server on port 80 as a service ???
      Am changing the port from 8080 to 80 in standalone.xml file. If am running it manually(JBOSS_HOME/bin/sh standalone.sh) its working fine.
      But if am running through as service am getting the below error, How can i solve this ?, please guide me...

       

      =========================================================================

        JBoss Bootstrap Environment

        JBOSS_HOME: /opt/jboss-as-7.1.1.Final

        JAVA: /usr/java/jdk1.7.0_71/bin/java

        JAVA_OPTS:  -server -XX:+UseCompressedOops -XX:+TieredCompilation -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml

      =========================================================================

      00:17:15,172 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA

      00:17:15,508 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA

      00:17:15,586 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting

      00:17:16,931 INFO  [org.xnio] XNIO Version 3.0.3.GA

      00:17:16,946 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)

      00:17:16,969 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA

      00:17:16,989 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA

      00:17:17,042 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers

      00:17:17,055 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem

      00:17:17,095 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.

      00:17:17,166 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem

      00:17:17,175 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem

      00:17:17,179 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem

      00:17:17,249 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension

      00:17:17,262 INFO  [org.jboss.as.security] (MSC service thread 1-2) JBAS013100: Current PicketBox version=4.0.7.Final

      00:17:17,299 INFO  [org.jboss.as.connector] (MSC service thread 1-1) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)

      00:17:17,423 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

      00:17:17,520 INFO  [org.jboss.as.naming] (MSC service thread 1-2) JBAS011802: Starting Naming Service

      00:17:17,896 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-2) JBoss Web Services - Stack CXF Server 4.0.2.GA

      00:17:17,999 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-2) JBAS015400: Bound mail session [java:jboss/mail/Default]

      00:17:18,100 ERROR [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) Error initializing endpoint: java.net.BindException: Permission denied /10.3.3.66: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.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_71]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_71]

        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_71]

       

       

      00:17:18,161 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) 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.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_71]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_71]

        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_71]

      Caused by: LifecycleException:  Protocol handler initialization failed: java.net.BindException: Permission denied /10.30.30.55:80

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

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

        ... 5 more

       

      00:17:18,890 INFO  [org.jboss.as.remoting] (MSC service thread 1-2) JBAS017100: Listening on /10.3.3.66:9999

      00:17:18,918 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "Calendar.war"

      00:17:18,922 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-2) JBAS015012: Started FileSystemDeploymentService for directory /opt/jboss-as-7.1.1.Final/standalone/deployments

      00:17:19,143 INFO  [org.jboss.as.remoting] (MSC service thread 1-1) JBAS017100: Listening on /10.3.3.66:4447

      00:17:19,161 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

      00:17:20,032 INFO  [org.jboss.web] (MSC service thread 1-2) JBAS018210: Registering web context: /Calendar

      00:17:20,060 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS018559: Deployed "Calendar.war"

      00:17:20,065 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report

      JBAS014777:   Services which failed to start:      service jboss.web.connector.http: org.jboss.msc.service.StartException in service jboss.web.connector.http: JBAS018007: Error starting web connector

       

      00:17:20,071 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "Calendar2.war"

      00:17:20,084 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "Calendar1.war"

      00:17:20,350 INFO  [org.jboss.web] (MSC service thread 1-2) JBAS018210: Registering web context: /Calendar2

      00:17:20,353 INFO  [org.jboss.web] (MSC service thread 1-1) JBAS018210: Registering web context: /Calendar1

      00:17:20,363 INFO  [org.jboss.as] (MSC service thread 1-1) JBAS015951: Admin console listening on http://10.3.3.66:9990

      00:17:20,364 ERROR [org.jboss.as] (MSC service thread 1-1) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 5541ms - Started 249 of 331 services (1 services failed or missing dependencies, 80 services are passive or on-demand)

      00:17:20,435 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "Calendar1.war"

      00:17:20,436 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "Calendar2.war"

       

      Thanks,
      Bharathi