To completely uninstall Application Server and also uninstall the Web Server, use the following procedure.
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.
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.
On Windows systems, remove install-dir\bin from the PATH environment variable and delete the AS_ADMIN_USER variable.
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 or stopserv program in one of the following directories (depending upon the Web Server version):
If you want to uninstall the Web Server product, run the uninstall program from the web-server-install-dir.