Oracle Fusion Middleware Installation Guide for Oracle Directory Server Enterprise Edition

ProcedureTo Deploy the DSCC WAR File With GlassFish Application Server

  1. Create the WAR file for DSCC.


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

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

    For the zip 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 on which DSCC is deployed, register the DSCC agent in the 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 glassfish-domain-path
    $ cd app-server-install-path/bin
    $ asadmin create-domain --domaindir glassfish-domain-path --adminport 3737 \
      --user admin dscc7
  5. Edit the server.policy file.

    1. Open the server.policy file.


      $ vi glassfish-domain-path/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;
      };

    This statement 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 glassfish-domain-path --user admin dscc7 
    $ cp install-path/var/dscc7.war glassfish-domain-path/dscc7/autodeploy

    For more information about creating and configuring application server instances and deploying the WAR file, refer to the GlassFish 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 is displayed.