users@glassfish.java.net

SMF problems

From: <glassfish_at_javadesktop.org>
Date: Fri, 09 Nov 2007 07:21:26 PST

Several problems getting SMF implemented...

# /opt/SUNWappserver/bin/asadmin version
Version = Sun Java System Application Server 9.1

1. if I put AS_ADMIN_USER=admin in passwordfile, get:
  Options specified in passwordfile are either invalid or deprecated.

- all examples I have seen have this shown in passwordfile

2. if I 'only' have AS_ADMIN_PASSWORD=fred in passwordfile, get:
  CLI156 Could not start the domain domain1.
  java.net.BindException: Permission denied: 80

- running as root
- docs indicate I only need net_privaddr IF not running as root
# /opt/SUNWappserver/bin/asadmin start-domain domain1 -- WORKS perfectly

3. if I add AS_ADMIN_MASTERPASSWORD=fred in passwordfile, get:
  Incorrect master password

- 'WHAT' master password??
- I only know of an 'admin' password - what am I missing?

This is part of generated manifest...
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle type="manifest"
                name="SUNWasu appserver services">
  <service name="application/SUNWappserver/domain1"
           version="1"
           type="service">
    <single_instance/>
    <exec_method type="method"
                 name="start"
                 exec="/opt/SUNWappserver/bin/asadmin start-domain --user admin --passwordfile /opt/SUNWappserver/domains/domain1/smf/passwd --domaindir /opt/SUNWappserver/domains domain1"
                 timeout_seconds="0">
      <method_context working_directory=":default">
        <method_credential user="root"
                           group=":default"
                           privileges="basic"/>
      </method_context>
      <stability value="Evolving"/>
    </exec_method>
    <exec_method type="method"
                 name="stop"
                 exec="/opt/SUNWappserver/bin/asadmin stop-domain --domaindir /opt/SUNWappserver/domains domain1"
                 timeout_seconds="0">
      <method_context working_directory=":default">
        <method_credential user="root"
                           group=":default"/>
      </method_context>
      <stability value="Evolving"/>
    </exec_method>


As always, I truly appreciate the help and feedback on this forum!

Any comments are appreciated!

Thanks,
- Dan
[Message sent by forum member 'htsguru' (htsguru)]

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