Sun Java System Web Server 7.0 Update 8 Developer's Guide to Java Web Applications

Managing Web Applications

Once deployed, the application or module exists in the central repository and can be referenced by a number of server instances. Initially, the server instances or clusters that you deployed as targets reference the application or module. To change the server instances and clusters that reference an application or module after it is deployed, change an application or modules targets using the Admin Console or change the application references using the wadm.

Because the application is stored in the central repository, adding or deleting targets adds or deletes the same version of an application on different targets. However, an application deployed to more than one target can be enabled on one target and disabled on another target. Therefore, even if an application is referenced by a target, it is not available to you unless it is enabled on that target. In Web Server you can enable or disable a web application either using the Admin Console or command-line interface.

ProcedureTo Enable or Disable a Deployed Web Application

  1. Access the Admin Console.

  2. Select the server instance and click the edit Virtual Server tab.

  3. Click the Web applications tab.

  4. In the Web Applications table, select the web application.

    • To enable the application, click Enable.

    • To disable the application, click Disable.


    Tip –

    Use the enable-webapp and disable-webapp commands to enable or disable the web application through the command-line interface. For more information, see the enable-webapp(1) and disable-webapp(1) man pages.


  5. Click Save.

Enabling Web Applications

Web Server allows you to enable or disable a web application. You can do so in either of the following ways, as discussed in this section:

Enabling and Disabling Using the Admin Console

To enable or disable a deployed web application using the Admin Console, perform the following steps:

ProcedureTo Remove a Deployed Web Application

  1. Access the Admin Console.

  2. Select the server instance and click the edit Virtual Server tab.

  3. Click the Web applications tab.

  4. In the Web Applications table, select the web application or applications you want to remove and click Remove.


    Tip –

    To remove a deployed web application through the command-line interface, use the remove-webapp command. For more information, see the remove-webapp(1) man page.


  5. In the dialog box that appears, click OK.