Sun Java System Web Server 7.0 Update 2 Administrator's Guide

Managing Configurations

Creating a Configuration

In order to start using the web server, you need to create a Configuration.

To create a new Configuration, perform the following tasks:

  1. Click Configuration tab .

  2. Click New button

The wizard guides you through the settings available for creating a Configuration. The following sections provide a description of the fields available in wizard pages:

Step 1 – Set Configuration Information

This wizard page allows you to set the generic information for the new configuration

Set the following parameters in the wizard page:

Step 2 — Create a Listener for the Configuration

This wizard page allows you to set the HTTP listener properties for the new Configuration

Set the following parameters in the wizard page:

Step 3 — Configure Java, CGI and SHTML

This wizard page allows you to configure properties related to Java/CGI and SHTML.

Set the following parameters in the wizard page:

Step 4 — Create an Instance

This wizard page allows you to create an instance for the new Configuration.

Set the following parameters in the wizard page:


Note –

Using CLI

For creating a configuration through CLI, execute the following command:


wadm> create-config --doc-root=[DOCROOT] --jdk-home=[JAVAHOME] 
--server-user=[SERVERUSER]  [--document-root=serverdocroot] [--platform=32|64] 
--http-port=port --server-name=servername CONFIGNAME

config1 is the name of the new configuration.

See CLI Reference, create-config(1).


Duplicating a Server Configuration

You can copy a server configuration and create a new configuration. The newly copied configuration is identical to the existing configuration. However, the new configuration will not have any instance even though the configuration from which it has been copied has instances.

To duplicate a configuration, perform the following tasks:

  1. Click Configuration tab.

  2. Select the configuration from the list.

  3. Click the Duplicate button.

  4. In the pop-up window, enter the new configuration name and click OK.


Note –

Using CLI

For performing the action through CLI, execute the following command:


wadm> copy-config --user=admin --password-file=admin.pwd --host=serverhost 
--port=8989 --config=config1 copyconfig1

copyconfig1 is the name of the new configuration.

See CLI Reference, copy-config(1).


Deploying the Server Configuration

You need to create a configuration first to deploy on the node.

For deploying an existing configuration, perform the following tasks:

  1. Click Configurations tab

  2. Identify the configuration by selecting the configuration checkbox.

  3. Click the Deploy button .

  4. A new window appears, click the Deploy button to deploy the configuration.

Deleting the Server Configuration


Note –

You cannot delete a configuration, if instances of the configuration are deployed to nodes. Even if the instances are deployed and not running, you are not allowed to delete the server configuration. Stop the running instances and undeploy them to delete the configuration.


For deleting a configuration, perform the following tasks:

  1. Click Configurations tab

  2. Identify the configuration by selecting the configuration checkbox.

  3. Click the Delete button.

  4. A new window appears, click the OK button to delete the configuration.

Pulling Configuration Changes to the Administration Server

Whenever you make manual changes to the configuration, you should replicate the changes back into the Administration server repository as follows:

  1. Manually edit server instance's configuration files as you would do with the earlier version of Web Server (Not recommended).

  2. Start the Administration Server.

  3. For pulling the changes back to the Administration Server repository, execute the following command.


    wadm> pull-config --user=admin --config=CONFIG_NAME

Note –

The operation may take some time depending on the configuration.



Note –

Always use the Administration Console or the wadm CLI to edit the settings. When you invoke pull-config only the contents of the <instance_dir>/config directory will be pulled into the configuration store from Web Server .


Removing the Administration Node from the Server

ProcedureTo Remove the Administration Node from the Server

  1. Click the Nodes tab from the Common Tasks page.

  2. Select the Administration Node.

    Select the Administration Node from the list

  3. Click the Remove button.