Sun Java System Application Server 9.1 Quick Start Guide

ProcedureTo Deploy the Hello Application Using Admin Console

  1. Open http://localhost:4848/asadmin in a web browser.

    • localhost is used if the both the browser and the Application Server are running on the same system. If the Application Server is running on another system, substitute the name of that system in the URL.

    • 4848 is the Admin Console’s default port number. If you changed the port number during the installation, use that number instead.

  2. Enter the admin user name and password.

  3. In the left pane, click the Applications node to expand it.

  4. Click Web Applications.

    You can see the list of deployed web applications, if any.

  5. If you already have a Hello application deployed, undeploy it now by selecting the checkbox next to it and clicking Undeploy.

  6. Click Deploy.

  7. You can use the Hello application bundled with the Application Server or you upload the sample you have downloaded from http://glasfish.dev.java.net/downloads/quickstart/hello.war. Do one of the following:

    • Select the option called Local packaged file or directory that is accessible to Application Server and click Browse Files. Navigate to the as-install/samples/quickstart directory and select hello.war.

  8. If you have downloaded the Hello application Select the Package file to upload to the Application Server option and click Browse. Navigate to the directory to which you have downloaded the application.

  9. Click OK.

    The application appears in the Web Applications list.

  10. To verify that it was deployed properly, in the Web Applications page, select the Hello application and click Launch.

Deploying Applications Using CLI Commands

You can deploy applications using the asadmin deploy command. See deploy(1) in the Sun Java System Application Server 9.1 Reference Manual. You can also use the asant commands for deployment. For detailed information on deploying applications see Deploying Modules and Applications in Sun Java System Application Server 9.1 Application Deployment Guide.