Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am now trying to deploy my Rails application to Torquebox 2.0.3 on Ubuntu Server 11.04. Now it's correctly deployed , I could visit the application on port 8080. but I could not configure the server to listen to port 80.

I tried to set the port to listen in $TORQUEBOX_HOME/jboss/standalone/configuration/standalone.xml :

<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">


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


After that when I start Torquebox by calling torquebox run, and I get the following error:

15:47:07,804 ERROR [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) Error initializing endpoint: Permission denied /
    at [jbossweb-7.0.13.Final.jar:]
    at org.apache.coyote.http11.Http11Protocol.init( [jbossweb-7.0.13.Final.jar:]
    at org.apache.catalina.connector.Connector.init( [jbossweb-7.0.13.Final.jar:]
    at [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService( [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

    at org.jboss.msc.service.ServiceControllerImpl$ [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
        at java.util.concurrent.ThreadPoolExecutor.runWorker( [rt.jar:1.6.0_23]
        at java.util.concurrent.ThreadPoolExecutor$ [rt.jar:1.6.0_23]
    at [rt.jar:1.6.0_23]

But I find no process is holding port 80:

$ sudo lsof -i :80
$ sudo netstat -tulpn | grep :80

How could I solve this problem and configure jboss server to listen to port 80?

share|improve this question
up vote 2 down vote accepted

Lower numbered ports - lower than 1024 tend to be restricted to root users - the best/simplest way to get around this is to forward port 80 to 8080 internally at iptables or at the network's firewall, rather than at the application level.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .