Once deployed, your web applications are enabled by default. To disable a deployed web application manually you would need to modify the server.xml file as follows:
<VS> <WEBAPP uri="/mywebapp" path="/webappdir" enabled = "false" > </WEBAPP> ... </VS>
If you inadvertently deploy or edit more than one web application with the same description, and one of them is disabled, the server will ignore enabled = “false” and continue with default setting of enabled = “true”.
For more information about the server.xml file, see the Sun Java System Web Server 6.1 SP9 Programmer’s Guide to Web Applications.
You can deploy and edit web applications in two ways: