<div>My current setup:</div><div><br></div><div>JETTY_USER=root</div><div>JETTY_PORT=80</div><div><br></div><div>jetty.conf:</div><div><br></div><div><div>/etc/jetty/jetty-logging.xml</div><div>/etc/jetty/jetty.xml</div><div>

/etc/jetty/jetty-setuid.xml</div><div>/etc/jetty/jetty-shared-webapps.xml</div></div><div><br></div><div>jetty-setuid.xml sets uid = jetty&#39;s id, and gid = a group id</div><div><br></div><div>Tried with jetty-setuid.xml both before &amp; after jetty.xml, but I get:</div>

<div><div>307 [main] ERROR org.mortbay.log - EXCEPTION</div><div>java.lang.ClassCastException: class org.mortbay.setuid.SetUIDServer</div><div>        at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:212)</div>

<div>        at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:974)</div></div><div><div>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</div><div>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</div>

<div>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</div><div>        at java.lang.reflect.Method.invoke(Method.java:597)</div><div>        at org.mortbay.start.Main.invokeMain(Main.java:194)</div>

<div>        at org.mortbay.start.Main.start(Main.java:534)</div><div>        at org.mortbay.jetty.start.daemon.Bootstrap.start(Bootstrap.java:30)</div><div>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</div>

<div>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</div><div>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</div><div>        at java.lang.reflect.Method.invoke(Method.java:597)</div>

<div>        at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)</div></div><div><br></div><div>With JETTY_USER=jetty I get:</div><div><br></div><div><div>if before, the server starts up, but:</div>

<div><div>1342 [main] INFO org.mortbay.log - Opened /var/log/jetty/2010_11_04.request.log</div><div>1356 [main] WARN org.mortbay.log - failed <a href="http://SelectChannelConnector@77.66.28.112:80">SelectChannelConnector@77.66.28.112:80</a>: java.net.SocketException: Permission denied</div>

<div>1356 [main] WARN org.mortbay.log - failed SetUIDServer@6bdc64a5: java.net.SocketException: Permission denied</div><div>1356 [main] WARN org.mortbay.log - EXCEPTION</div><div>java.net.SocketException: Permission denied</div>

<div>        at sun.nio.ch.Net.bind(Native Method)</div><div>        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)</div><div>        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)</div>

<div>        at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216)</div><div>        at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:315)</div><div>        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)</div>

<div>        at org.mortbay.jetty.Server.doStart(Server.java:235)</div><div>        at org.mortbay.setuid.SetUIDServer.doStart(SetUIDServer.java:131)</div><div>        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)</div>

<div>        at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)</div><div>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</div><div>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</div>

<div>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</div><div>        at java.lang.reflect.Method.invoke(Method.java:597)</div><div>        at org.mortbay.start.Main.invokeMain(Main.java:194)</div>

<div>        at org.mortbay.start.Main.start(Main.java:534)</div><div>        at org.mortbay.jetty.start.daemon.Bootstrap.start(Bootstrap.java:30)</div><div>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</div>

<div>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</div><div>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</div><div>        at java.lang.reflect.Method.invoke(Method.java:597)</div>

</div><div><div>        at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)</div></div></div><div><br></div><div>I&#39;ll be willing to try out suggestions.</div><br clear="all">Regards<br><br>
Mikkel Eide Eriksen<br>
Basepoint Media<br>