users@glassfish.java.net

Glassfish v3 on port 80: won't start with SMF as non-root

From: <glassfish_at_javadesktop.org>
Date: Thu, 29 Jan 2009 12:06:53 PST

Greetings,

I am trying to hack GFish v2 SMF manifest to manage a v3 Prelude instance.

When I have

exec_method name='start' type='method' exec='/opt/local/glassfish/bin/asadmin start-domain domain1' timeout_seconds='0'>
      <method_context>
        <method_credential user='admin' privileges='priv_net' />
      </method_context>

I am getting this:

[#|2009-01-29T01:05:52.888+0000|SEVERE|glassfish|javax.enterprise.system.core|_ThreadID=14;_ThreadName=Thread-3;|doSelect exception
java.net.BindException: Permission denied: 80=com.sun.grizzly.http.SelectorThreadHandler_at_1aa0e3b
        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(GrizzlyServiceListener.java:91)
        at com.sun.enterprise.v3.services.impl.GrizzlyProxy$1.run(GrizzlyProxy.java:222)

---
Running asadmin start-domain as admin with 
$ ppriv $$
15343:  -bash
flags = <none>
        E: basic,net_privaddr
        I: basic,net_privaddr
        P: basic,net_privaddr
works...
So, for now I have to put credential-user as root.
What am I doing wrong and is there a better way to do it?
Thank you,
David
[Message sent by forum member 'dvdklnr' (dvdklnr)]
http://forums.java.net/jive/thread.jspa?messageID=329062