Once updated, the WARs must be redeployed to their web container. The web container provides services such as request dispatching, security, concurrency, and life cycle management. The web container also gives the web components access to the J2EE APIs.
The BEA WebLogic Server 6.1 and Sun Java System Application Server web containers do not require WARs to be exploded. They are deployed as WARs. After redeploying the war files, you must restart all related servers.
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:
The URI prefix for the web application (requires a leading \x{201C}/\x{201D}).
The server instance name.
The virtual server ID.
(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
Specifies whether both the directory and the server.xml entry are deleted (hard), or only the server.xml entry is deleted (soft).
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.
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
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.
Run the Java command on the BEA WebLogic 6.1 Server using the following form:
java weblogic.deploy -url protocol://server_host:server_port -component amconsole:WL61 _server_name deploy WL61_admin_password deployment_URI AccessManager-base/SUNWam/WARname.war
where the following variables are used:
The protocol [http | https] and fully-qualified name of the Access Manager server.
The name of the WebLogic server.
The WebLogic administrator password.
For console.war, the deployment URI is amconsole.
For server.war, the deployment URI is amserver.
For password.war, the deployment UIR is ampassword.
The directory where the Access Manager server is installed.
The name of the WAR file to deploy.
[console.war | server.war | password.war]
For more complete information on the Java utility weblogic.deploy and its options, see the BEA WebLogic Server 6.1 documentation.
On the Application Server, run the asadmin command using the following form:
asadmin deploy -u S1AS_administrator -w S1AS_administrator_password -H console_server_host -p S1AS_server_port --type web secure_flag --contextroot deploy_uri --name deploy_uri --instance S1AS_instanceAccessManager-base/SUNWam/WARname
where the following variables are used:
Application Server administrator
Application Server administrator password
Access Manager server host name
Application Server port number
For console.war, the deployment URI is amconsole.
For password.war, the deployment URI is ampassword.
For service.war, the deployment URI is amservices.
Application Server directory where Access Manager server is installed
The name of the WAR file to deploy.
[console.war | server.war | password.war]
For more information on the asadmin deploy command and its options, see the Sun Java System Application Server 7.0 Developer’s Guide.
For detailed instructions on how to deploy WARs in an IBM WebSphere Application Server container, see the documentation that comes with the product: http://www-3.ibm.com/software/webservers/studio/doc/v40/studioguide/en/html/sdsscenario1.html.