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

ProcedureTo Redeploy a WAR On Sun Java System Web Server 6.1

  1. Delete the existing Access Manager web applications using the following form:

    server_root/bin/https/bin/wdeploy delete -u uri_path -i instance -v vs_id hard|softwhere the following variables are used:

    uri_path

    The URI prefix for the web application (requires a leading \x{201C}/\x{201D}).

    instance

    The server instance name.

    vs_id

    The virtual server ID.

    directory

    (Optional) The directory to which the application is deployed, or from which the application is deleted. If not specified for deployment, the application is deployed to instance_directory/webapps/vs_id/webappname. In this example, this directory is

    /opt/SUNWwbsvr/https-test/webapps/ https-test/testapp

    hard|soft

    Specifies whether both the directory and the server.xml entry are deleted (hard), or only the server.xml entry is deleted (soft).

    war_file

    The WAR file name.

    In the following example, the Sun Java System Web Server is installed in the directory /opt/SUNWwbsvr. To remove the amserver web application, use the following command: /opt/SUNWwbsvr/https/bin/wdeploy delete -u /amserver -i system.example.com -v https-system.example.com hard

    Repeat this step for all Access Manager applications such as /amserver , /amconsole , and /ampassword.

  2. Deploy the web application using the following form:

    wdeploy deploy -u uri_path -i instance -v vs_id [-d directory] war_file

    In this example, to deploy the amserver.war file, use the following command:

    /opt/SUNWwbsvr/https/bin/wdeploy deploy -u /amserver -i system.example.com -v https-system.example.com -d /opt/SUNWwbsvr/web-apps/services /opt/SUNWam/services.war

Sun Java System Web Server 6.1 SP4

For more information on deploying web applications, see the chapter “Deploying Web Applications,”http://docs.sun.com/source/817-6251/pwadeply.html#wp21505, in the Sun Java System Web Server 6.1 SP4 Programmer's Guide to Web Applications.