Deploying Web applications

You can use the Web Management Console to deploy Web applications into EAServer. Alternatively, you can use the deploy command to deploy, or redeploy your Web application. See the deploy command, in Chapter 12, “Command Line Tools,” of the EAServer System Administration Guide.

StepsDeploying a Web application into EAServer

  1. Right-click the Web Applications folder and select Deploy.

  2. The Deploy wizard displays in the right pane of the Management Console.

  3. Follow the wizard instructions to deploy your Web application, making entries in these fields:

    1. File Name – the name of the file that contains your J2EE Web application.

    2. Web Application Module Name – (optional) the module that contains the Web application. For example, if your Web application file is test.war, the default name given to your Web application is “test.” test.war is stored in web.components.test. The WAR file name is lowercase. This page contains these buttons:

      • Use the Default Module Name – select this option to use the default module name.

      • Specified Module – enter the desired module name, if other than the default.

      • Overwrite if This Name Already Exists – overwrites any existing module with the same name.

    3. Do validation during deployment – validates the Web application’s deployment descriptors during deployment. The default is true.

    4. Context Path – (optional) the context path for the Web application. For example, default context path for test.war is “test” (the name of the WAR file, case preserved, without the .war extension).

      • Use Default Context Path– uses the default module context path.

      • Specified Context Path – enter the desired context path name, if other than the default.

    5. Run JSP Compiler During the Deployment – valid only for Web modules and J2EE application modules that contain JSP files. Runs the JSP compiler during deployment if this option is set to true (the default).

    6. Server – select a server into which you want to add this module. The module is started by the server after the server is refreshed. The default server is the server on which the Web Management console is running. If you do not want to install this module to any server, leave this option unselected. To install the module after deployment, select “Install This Module into the Selected Server”.

    7. Directory Name – during deployment, if the archive does not contain an EAServer-specific configuration file in the META-INF directory (located in the deploy/webapps/web_app_name subdirectory of your EAServer installation, where web_app_name is the name of your Web application), one is generated. Use this option to save a copy of the archive, which includes a copy of the generated configuration file to an optional location.

    8. Summary – the summary page displays your deployment settings. Verify that they are correct and select Finish to deploy the Web application, or Back to change any settings.

      The wizard displays informational messages to the console as it attempts to deploy the Web application. When complete, a message informs you whether the deployment succeeded or failed: