Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Quick Start Guide

Starting the Domain Administration Server

To start the Domain Administration Server, start the default domain, domain 1, using the following procedures.


Note –

Because this guide instructs you to set an environment variable AS_ADMIN_USER for administrative user name, it does not instruct you to supply a user name argument when the asadmin command is used. Without the environment variable, you supply this argument when you type the command. The general syntax is:

asadmin command_verb --user username command_arguments

For example, if your user name is admin, the syntax for asadmin start-domain is: asadmin start-domain --user admin domain1


ProcedureTo Start the Domain on Solaris and Linux

  1. Add the install-dir/bin/ directory to the PATH environment variable.

  2. Set the AS_ADMIN_USER environment variable so that you do not need to type it for every command.

    Set the value of AS_ADMIN_USER to the admin user you specified when you installed the Application Server. For example, setenv AS_ADMIN_USER admin

  3. Start the server by entering this command from the install-dir:

    asadmin start-domain domain1

    When you are prompted for the admin password and the master password, enter the passwords that you provided during installation.

  4. A message appears telling you that the Domain Administration Server is starting:

    Starting Domain domain1, please wait. Log redirected to domain_dir/domain1/logs/server.log...

  5. When the startup process has completed, an additional message appears:

    Domain domain1 started

ProcedureTo Start the Domain on Windows

  1. From the Explorer window or desktop, right click My Computer.

  2. Choose Properties to display the System Properties dialog.

  3. Click the Advanced tab.

  4. Click Environment Variables.

  5. In the User variables section:

    • If a PATH variable exists, verify that install-dir\bin exists in the path: install-dir\bin;other_entries.

    • If a PATH variable is not present, click New. In Variable Name, type PATH. In Variable Value, type the path to the server’s bin directory: install-dir\bin. Click OK to commit the change.

  6. Add a new environment variable AS_ADMIN_USER and set it to the Administrative User Name that you assigned during installation.

  7. Click OK to commit the change and close the remaining open windows.

  8. Start the Application Server

    • For Java Enterprise System installations, from the Start menu, choose Programs ⇒ Sun Microsystems ⇒ Application Server⇒ Start Admin Server.

    • For stand-alone installations, from the Start menu, choose Programs ⇒ Sun Microsystems ⇒ Application Server EE ⇒ Start Admin Server.

  9. When a command prompt window opens to prompt you for the admin password and the master password, enter the passwords that you provided during installation.

    A window appears with a message telling that you the server is starting:

    Starting Domain domain1, please wait. Log redirected to domain_dir\domain1\logs\server.log...

    When the startup process has completed, you see an additional message:

    Domain domain1 started.Press any key to continue ...

  10. Press a key to close the message window.