Sun Java System Application Server Platform Edition 8.1 2005Q2 Update 2 Quick Start Guide

- Previous: Deploying the Packaged Application using deploytool
- Next: Using Command-line Tools

## To Deploy from a Development Directory

##### Steps

1. In the install_dir`/samples/quickstart/` directory, create a new directory called `build/`.

2. Unzip the contents of the `hello.war` file into the `build/` directory.

   Preserve the directory structure of the `hello.war` file when you unzip it. It is a template for the kind of file structure you need to deploy directly from a directory.

3. If you already have an application `hello` deployed, undeploy it now using the command `asadmin undeploy hello`.

4. Issue the following command to deploy the application:

   `asadmin deploydir` install_dir`/samples/quickstart/build`

   Note –

   Specify the full path to the `build/` directory.

   If you did not install the Application Server with the “Don’t prompt” option, also specify `--user` username `--password` password, where username is the admin user name and password is the admin password.

5. Verify that this message appears to confirm that the redeployment succeeded:

   `Command deploydir executed successfully.`

6. Verify that the application is running by going to this URL: `http://`localhost`:8080/hello`.

- Previous: Deploying the Packaged Application using deploytool
- Next: Using Command-line Tools

- © 2010, Oracle Corporation and/or its affiliates