background image

Starting and Stopping the Application Server

<< NetBeans IDE | Starting and Stopping the Java DB Database >>
<< NetBeans IDE | Starting and Stopping the Java DB Database >>

Starting and Stopping the Application Server

12. In the Restart the IDE dialog, click OK.
The IDE must be restarted to install the modules.
Apache Ant
Ant is a Java technology-based build tool developed by the Apache Software Foundation
(
http://ant.apache.org/
), and is used to build, package, and deploy the tutorial examples.
Ant is included with the Application Server. To use the ant command, add
as-install/lib/ant/bin to your PATH environment variable.
Starting and Stopping the Application Server
To start the Application Server, open a terminal window or command prompt and execute the
following:
asadmin start-domain --verbose domain1
A domain is a set of one or more Application Server instances managed by one administration
server. Associated with a domain are the following:
The Application Server's port number. The default is 8080.
The administration server's port number. The default is 4848.
An administration user name and password.
You specify these values when you install the Application Server. The examples in this tutorial
assume that you chose the default ports.
With no arguments, the start-domain command initiates the default domain, which is
domain1
. The --verbose flag causes all logging and debugging output to appear on the terminal
window or command prompt (it will also go into the server log, which is located in
domain-dir/logs/server.log).
Or, on Windows, you can choose:
Programs
Sun Microsystems Application Server PE 9 Start Default Server
After the server has completed its startup sequence, you will see the following output:
Domain domain1 started.
To stop the Application Server, open a terminal window or command prompt and execute:
asadmin stop-domain domain1
Or, on Windows, choose:
Starting and Stopping the Application Server
The Java EE 5 Tutorial · September 2007
68