Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Quick Start Guide

Cleaning Up

To clean up, you can uninstall the Application Server installation by completing the steps in To Uninstall Completely, or you can simply delete the sample cluster you have just created by completing the steps in To Remove the Sample Cluster Only.


Caution – Caution –

If you plan to complete Chapter 2, Quick Start for Setting Up High Availability Failover do not use these clean-up procedures. Instead, go to Chapter 2, Quick Start for Setting Up High Availability Failover now and when you are done use the procedures you’ll find there to clean up.


ProcedureTo Uninstall Completely

To completely uninstall Application Server and also uninstall the Web Server, use the following procedure.

  1. Stop the Application Server processes using these commands:

    asadmin stop-cluster FirstCluster

    asadmin stop-node-agent hostname

    asadmin stop-domain domain1

    At this point all processes related to Application Server are stopped.

  2. Uninstall the Application Server.

    In a Solaris or Linux Java Enterprise System installation, run var/sadm/prod/entsys/uninstall and follow the steps in the uninstallation wizard.

    In a Windows Java Enterprise System installation, use the Control Panel's Add/Remove Programs item. Choose Sun Java Enterprise Systems and click Change/Remove.

    In a Solaris or Linux stand-alone Application Server installation, run install-dir/uninstall and follow the steps in the uninstallation wizard.

    In a Windows stand-alone installation, from the Start menu, choose Programs ⇒ Sun Microsystems ⇒ Application Server EE ⇒ Uninstall.

  3. If you installed Web Server for this exercise, stop the web server instance acting as load balancer and uninstall the Web Server product. You can stop the instance by executing the stop program in the following directory:

    web_server_install_dir/https-hostname

  4. If you want to unsinstall the Web Server product, run the uninstall program from the web_server_install_dir.

ProcedureTo Remove the Sample Cluster Only

To remove only the FirstCluster (the sample highly available cluster) and the sample application used during this exercise, but retain the installed Application Server and Web Server, use the following procedure.

  1. Stop the Application Server processes and clean up configuration:

    asadmin stop-cluster FirstCluster

    asadmin disable-http-lb-server FirstCluster

    asadmin delete-http-lb-ref --config MyLbConfig FirstCluster

    asadmin delete-http-lb-config MyLbConfig

    asadmin delete-instance i1

    asadmin delete-instance i2

    asadmin delete-cluster FirstCluster

    asadmin undeploy clusterjsp

  2. Stop the web server instance acting as load balancer by running the stop program in the following directory:

    web_server_install_dir/https-hostname

  3. Rename the loadbalancer.xml file in web_server_install_dir/https-hostname /config to loadbalancer.xml.sav