Sun Java System Access Manager 7 2005Q4 Developer's Guide

ProcedureTo Redeploy the amserver.war File

  1. In AccessManager-base/bin/amsamplesilent, set Deploy Level variable as follows:

    DEPLOY_LEVEL=21

  2. In AccessManager-base/bin/amsamplesilent, set container-related environment variables.

    • On Sun Java System Web Server 6.1, where /amserver is the default DEPLOY_URI:

      SERVER_HOST=WebServer-hostName
      SERVER_PORT=WebServer-portNumber
      SERVER_PROTOCOL=[http | https]
      SERVER_DEPLOY_URI=/amserver
      WEB_CONTAINER=WS6
      WS61_INSTANCE=https-$SERVER_HOST
      WS61_HOME= WebServer-base-directory
      WS61_PROTOCOL=$SERVER_PROTOCOL
      WS61_HOST=$SERVER_HOST
      WS61_PORT=$SERVER_PORT
      WS61_ADMINPORT=WebServer-adminPortWS61_ADMIN=WebServer-adminUserName
      
    • On Sun Java System Application Server 7.0, where /amserver is the default DEPLOY_URI:

      SERVER_HOST=ApplicationServer-hostName
      SERVER_PORT=ApplicationServer-portNumber
      SERVER_PROTOCOL=[http | https]
      SERVER_DEPLOY_URI=/amserver
      WEB_CONTAINER=AS7
      AS70_HOME=/opt/SUNWappserver7
      AS70_PROTOCOL=$SERVER_PROTOCOL
      AS70_HOST=$SERVER_HOST
      AS70_PORT=$SERVER_PORT
      AS70_ADMINPORT=4848
      AS70_ADMIN=admin
      AS70_ADMINPASSWD=ApplicationServer-adminPassword
      AS70_INSTANCE=server1
      AS70_DOMAIN=domain1
      AS70_INSTANCE_DIR=/var/opt/SUNWappserver7/domains/
        ${AS70_DOMAIN:-domain1}/${AS70_INSTANCE:-server1}
      AS70_DOCS_DIR=/var/opt/SUNWappserver7/domains/${AS70_DOMAIN:-domain1}/
        ${AS70_INSTANCE:-server1}/docroot
      #If Application Server is SSL Enabled then set the following:
      #AS70_IS_SECURE=true
      #SSL_PASSWORD=SSLpassword
      
    • On other supported platforms:

      Set platform-specific variables as is appropriate for the container.

  3. Redeploy the services web application by running the following command:

    AccessManager-base/bin/amconfig -s
      AccessManager-base/bin/amsamplesilent
    
  4. Restart the container instance.

    • Web Server example:

      /WebServer-base-directory/
        https-WebServer-instanceName/restart
      
    • Application Server example:

      /var/opt/SUNWappserver7/domains/${AS70_DOMAIN:-domain1}/
        ${AS70_INSTANCE:-server1}/bin/restartserv