Bug#554853: Trying on Debian Lenny with Jetty 6.1.24-6 from Squeeze

Mikkel Eide Eriksen mee at basepointmedia.com
Thu Nov 4 11:00:45 UTC 2010


My current setup:

JETTY_USER=root
JETTY_PORT=80

jetty.conf:

/etc/jetty/jetty-logging.xml
/etc/jetty/jetty.xml
/etc/jetty/jetty-setuid.xml
/etc/jetty/jetty-shared-webapps.xml

jetty-setuid.xml sets uid = jetty's id, and gid = a group id

Tried with jetty-setuid.xml both before & after jetty.xml, but I get:
307 [main] ERROR org.mortbay.log - EXCEPTION
java.lang.ClassCastException: class org.mortbay.setuid.SetUIDServer
        at
org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:212)
        at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:974)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.mortbay.start.Main.invokeMain(Main.java:194)
        at org.mortbay.start.Main.start(Main.java:534)
        at org.mortbay.jetty.start.daemon.Bootstrap.start(Bootstrap.java:30)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)

With JETTY_USER=jetty I get:

if before, the server starts up, but:
1342 [main] INFO org.mortbay.log - Opened
/var/log/jetty/2010_11_04.request.log
1356 [main] WARN org.mortbay.log - failed
SelectChannelConnector at 77.66.28.112:80: java.net.SocketException: Permission
denied
1356 [main] WARN org.mortbay.log - failed SetUIDServer at 6bdc64a5:
java.net.SocketException: Permission denied
1356 [main] WARN org.mortbay.log - EXCEPTION
java.net.SocketException: Permission denied
        at sun.nio.ch.Net.bind(Native Method)
        at
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
        at
org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216)
        at
org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:315)
        at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.Server.doStart(Server.java:235)
        at org.mortbay.setuid.SetUIDServer.doStart(SetUIDServer.java:131)
        at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.mortbay.start.Main.invokeMain(Main.java:194)
        at org.mortbay.start.Main.start(Main.java:534)
        at org.mortbay.jetty.start.daemon.Bootstrap.start(Bootstrap.java:30)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)

I'll be willing to try out suggestions.

Regards

Mikkel Eide Eriksen
Basepoint Media
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20101104/fd73f792/attachment-0001.htm>


More information about the pkg-java-maintainers mailing list