This topic, the first of three basic topics, provides the following sections:
To start the Domain Administration Server, start the default domain, domain 1, using the following procedures.
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:
For example, if your user name is admin, the syntax for asadmin start-domain is: asadmin start-domain --user admin domain1
Add the install-dir/bin/ directory to the PATH environment variable.
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.
Start the server by entering this command:
asadmin start-domain domain1
When you are prompted for the admin password and the master password, enter the passwords that you provided during installation.
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...
When the startup process has completed, an additional message appears:
Domain domain1 started
From the Explorer window or desktop, right click My Computer.
Choose Properties to display the System Properties dialog.
Click the Advanced tab.
Click Environment Variables.
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 install-dir\bin does not exist in the PATH variable, add it.
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.
Add a new environment variable AS_ADMIN_USER and set it to the Administrative User Name that you assigned during installation.
Click OK to commit the change and close the remaining open windows.
Start the Application Server
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 ...
Press a key to close the message window.
The Admin Console is a browser interface that simplifies a variety of administration and configuration tasks. It is commonly used to perform the following tasks:
Deploy and undeploy applications
Enable, disable, and manage applications
Configure resources and other server settings
Configure clusters and node agents
Manage server instances and clusters
Select and view log files
For further information about using the Admin Console, consult the online help or the Sun Java System Application Server Enterprise Edition 8.2 Administration Guide.
Type this URL in your browser:
Because the Admin Console is a secure web application, you must use HTTPS instead of HTTP.
Replace the localhost variable with the name of the system that the Domain Admin Server is running on.
4849 is the Admin Console’s default port number. If you changed the port number during the installation, use that number instead.
If a popup window appears with a message such as Website Certified by an Unknown Authority, click OK.
This message appears because your browser does not recognize the self-signed certificate that the Domain Administration Server uses to service the Admin Console over the secure transmission protocol.
When the Login window appears, enter the admin user name and password.
Click Log In.
When the Admin Console appears, it looks like this:
In the left pane, select what you want to manage from the tree provided from the tree. In the right pane, various administrative tasks are listed under the “Common Tasks” heading.
Click the Registration tab to register your software if you have not already done so.
Application Server instances and the Domain Administration Server produce annotated logs on the file system. By default, all errors, warnings or useful informative messages are logged.
From the Common Tasks list in the right pane, click Search Log Files to launch a new browser window for Log Viewer.
In the Log Viewer window, select “server” from the Instance Name drop–down list and click Search.
The Domain Administration Server’s recent log file entries are displayed.
Scan the messages and look for any WARNING or SEVERE messages indicating that problems were encountered during server start-up.
You can close Log Viewer at any time. After you create clusters and deploy applications, examine log files if any of the operations failed. Use Log Viewer to view the log files of any running Application Server instance in the domain.
For more information about the log file, see Chapter 15, Configuring Logging, in Sun Java System Application Server Enterprise Edition 8.2 Administration Guide.
The Application Server includes a bundled Java DB server. Java DB is based on the Apache Derby database. You do not have to start the database to perform any other tasks in this Quick Start Guide. However if you would like to start the database for future use, see the following procedure.
Make sure that you are logged in as the user that installed the database.
Run asadmin start-database.
For more information on the start-database command, see the command's help or the start-database(1).