users@glassfish.java.net

Re: Glassfish v3, port 80, & Authbind

From: <glassfish_at_javadesktop.org>
Date: Mon, 10 Nov 2008 05:47:05 PST

[b]This command:[/b]
authbind --deep ./asadmin start-domain domain1

[b]Yields this error on the command line:[/b]
Domain (domain1) did not respond in 90 seconds. It means it is still coming up
or it has failed to come up. Check server.log for details.

[b]I see this in the server log:[/b]
[#|2008-11-10T08:28:32.399-0500|SEVERE|glassfish|javax.enterprise.system.core|_T
hreadID=14;_ThreadName=Thread-3;|doSelect exception
java.net.BindException: Permission denied: 80=com.sun.grizzly.http.SelectorThrea
dHandler_at_52d1a4
        at com.sun.grizzly.TCPSelectorHandler.preSelect(TCPSelectorHandler.java:
356)
        at com.sun.grizzly.Controller.doSelect(Controller.java:367)
        at com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:
82)
        at com.sun.grizzly.Controller.startSelectorHandlerRunner(Controller.java
:1136)
        at com.sun.grizzly.Controller.start(Controller.java:943)
        at com.sun.grizzly.http.SelectorThread.startListener(SelectorThread.java
:1178)
        at com.sun.grizzly.http.SelectorThread.run(SelectorThread.java:1045)
        at com.sun.grizzly.http.SelectorThread.startEndpoint(SelectorThread.java
:1110)
        at com.sun.enterprise.v3.services.impl.GrizzlyServiceListener.start(Griz
zlyServiceListener.java:91)
        at com.sun.enterprise.v3.services.impl.GrizzlyProxy$1.run(GrizzlyProxy.j
ava:222)
|#]

[b]While this command, using the same user allows me to bind to port 80 without being root:
[/b] authbind nc -l -p 80 -e "/usr/bin/uptime"

I wonder if the way glassfish is forking has something to do with the problem... I used the --deep option, but still didn't work.

-Benjamin
[Message sent by forum member 'xnilo' (xnilo)]

http://forums.java.net/jive/thread.jspa?messageID=315769