To Deploy a Web Application

  1. In the navigation tree, select the Applications node.

    The Applications page opens.

  2. In the Deployed Applications table, click the Deploy button.

    The Deploy Applications or Modules page opens.

  3. Specify the location of the application to deploy.
  4. From the Type drop-down list, select Web Application.

    If you specified either a Packaged File to Be Uploaded to the Server or a Local Packaged File That Is Accessible From the GlassFish Server, the application type is detected automatically. If you specified a Directory That Is Accessible From the GlassFish Server, you must specify the type manually.

  5. In the Context Root field, type a string that identifies the web application.

    In the URL of the web application, the context root immediately follows the port number (http://host:port/context-root/...). The context root must start with a forward slash, for example, /hello.

  6. In the Application Name field, retain the default name, which is the directory name or the prefix of the file name, or type another name.

    The default name appears if you chose to upload a file. The application name must be unique.

  7. From the Virtual Servers drop-down list, select the virtual server to be associated with this application.
  8. Select the Status Enabled checkbox to enable the application.

    This option is selected by default. If this option is disabled, the application is unavailable.

  9. Select the Precompile JSPs checkbox to precompile JavaServer Pages (JSP) files.

    If this option is disabled, JSP files are compiled at runtime when they are first accessed. This option is disabled by default.

  10. Select the Run Verifier checkbox to run the verifier before deployment.

    If this option is selected and if verification fails, deployment is not performed. The verifier examines the structure and content of the file. Verification of large applications is often time-consuming. This option is disabled by default.

  11. Select the Force Redeploy checkbox to force redeployment if the application is already deployed.

    If this option is not selected, an attempt to deploy an application that is already deployed results in an error. This option is disabled by default.

  12. In the Libraries field, type a comma-separated list of library JAR files specific to this module or application.

    The paths may be absolute or relative. A relative path is relative to domain-dir/lib/applibs. If the path is absolute, the path must be accessible to the domain administration server (DAS), which means it must be under domain-dir. The libraries are made available to the application in the order in which they are specified.

  13. In the Description field, type a description for this application.
  14. Click OK.
See Also
Copyright © 2010, Oracle and/or its affiliates. All rights reserved. Legal Notices