Sun Directory Server Enterprise Edition 7.0 Installation Guide

ProcedureTo Deploy WAR File With Sun Java System Application Server

  1. Create the WAR file for DSCC.


    $ install-path/bin/dsccsetup war-file-create

    For native packages installation, the WAR file is created in the /var/opt/SUNWdsee7/ directory.

    For zip distribution installation, the WAR file is created in the install-path/var directory.

  2. Initialize the DSCC registry.


    $ install-path/bin/dsccsetup ads-create
    Choose password for Directory Service Manager:
    Confirm password for Directory Service Manager:
    Creating DSCC registry...
    DSCC Registry has been created successfully
  3. To create server instances on the same host where DSCC is deployed, register the DSCC agent in Common Agent Container.


    $install-path/bin/dsccsetup cacao-reg

    Type the following command to check the location and other statistics of your WAR file and DSCC registry:


    $ install-path/bin/dsccsetup status
  4. Create an application server instance.


    $ mkdir /local/domainroot
    $ cd app-server-install-path/bin
    $ asadmin create-domain --domaindir /local/domainroot --adminport 3737 \
    --user admin dscc7
  5. Edit the server.policy file.

    1. Open the server.policy file.


      $ vi /local/domainroot/dscc7/config/server.policy
    2. Add the following statements to the end of the file:


      // Permissions for Directory Service Control Center
      grant codeBase "file:${com.sun.aas.instanceRoot}/applications/j2ee-modules/dscc7/-" 
      {
      	permission java.security.AllPermission;
      };

    The addition configures the application server to grant all the Java permissions to the DSCC application.

  6. Deploy the WAR file in your application server instance.


    $ asadmin start-domain --domaindir /local/domainroot --user admin dscc7 
    $ cp install-path/var/dscc7.war /local/domainroot/dscc7/autodeploy

    For more information about creating and configuring application server instances and deploying the WAR file, refer to the Sun Java System Application Server Online Help.

  7. Open DSCC.

    Use http://hostname:8080/dscc7 or https://hostname:8181/dscc7 based on the configuration of your application server.

    The Directory Service Manager Login page displays.