commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Woodhead <adr...@last.fm>
Subject [commons daemon] - permission denied on port 80 using jsvc as root
Date Fri, 30 Jan 2009 12:51:52 GMT
Hey there,

I am trying to use jsvc to run a Java daemon program (implementing the 
daemon interface) and all goes well until I set it to run on port 80. At 
this point I get the following exception:

[2009-01-30 12:19:15] WARN (fm.last.streamer.Service:205) - Starting up 
server on 0.0.0.0:80...
java.lang.reflect.InvocationTargetException
        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)
Caused by: java.net.BindException: Permission denied
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
        at java.net.ServerSocket.bind(ServerSocket.java:319)
        at java.net.ServerSocket.bind(ServerSocket.java:277)
        at fm.last.streamer.server.ThreadServer.<init>(ThreadServer.java:48)
        at fm.last.streamer.Service.startServer(Service.java:206)
        at fm.last.streamer.Service.init(Service.java:107)
        at 
fm.last.streamer.ServiceBootstrapDaemon.start(ServiceBootstrapDaemon.java:31)
        ... 5 more
30/01/2009 12:19:15 22493 jsvc.exec error: Cannot start daemon

I am running this as root and I have also set the command line parameter 
"-user root" to no avail. I see there has been some discussion about 
this recently:

http://markmail.org/message/hal2o6gyhd4yjs5h?q=jsvc+java.net.BindException:+Permission+denied+list:org.apache.commons.user/#query:jsvc%20java.net.BindException%3A%20Permission%20denied%20list%3Aorg.apache.commons.user%2F+page:1+mid:hal2o6gyhd4yjs5h+state:results

but it doesn't appear to have been resolved. Can anyone tell me what the 
issue is here and if there is a way to fix it as this is a complete 
showstopper for us.

Regards,

Adrian


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message