Error while running Jetty Server on port 80 as non root user

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Error while running Jetty Server on port 80 as non root user

This post has NOT been accepted by the mailing list yet.

I was trying to setup jetty on port 80 but its giving exception saying permission denied as below. I have setup jetty to work with setuid and configured start.ini as follows:


(below as first configuration file in start.ini)


and jetty-setuid.xml file with username and group name of non root user.

Also, I am starting using script under bin directory. I configured JETTY_PORT=80 in this script.

I'll really appreciate if anyone can help me with this.

Below is exception i am getting.

2012-07-03 15:29:02.411:INFO:oejdp.ScanningAppProvider:Deployment monitor /opt/jetty-hightide-8.1.3.v20120416/contexts at interval 1
2012-07-03 15:29:02.454:WARN:oejuc.AbstractLifeCycle:FAILED SelectChannelConnector@ Permission denied Permission denied
        at Method)
        at org.eclipse.jetty.server.AbstractConnector.doStart(
        at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(
        at org.eclipse.jetty.server.Server.doStart(
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(
        at org.eclipse.jetty.xml.XmlConfiguration$
        at Method)
        at org.eclipse.jetty.xml.XmlConfiguration.main(
2012-07-03 15:29:02.455:WARN:oejuc.AbstractLifeCycle:FAILED org.eclipse.jetty.server.Server@66da9ea4: Permission denied Permission denied