users@glassfish.java.net

Re: Glassfish v3, port 80, & Authbind

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Mon, 10 Nov 2008 09:21:36 -0500

Salut,

glassfish_at_javadesktop.org wrote:
> [b]This command:[/b]
> authbind --deep ./asadmin start-domain domain1

I think the process returned by asadmin is not the one you are looking
at (IMBW).


>
> [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)

Can you try instead:

% authbind --deep java ${glassfish.home}/modules/glassfish.jar


> |#]
>
> [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"

Yes that one works as you are referring the proper process.

A+

-- Jeanfrancois


>
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>