Deploying a WAR Module

You deploy a WAR module as described in Tools for Deployment. If you do not specify a context root, the
default is the name of the WAR file without the extension.

If a web application accesses a DataSource that
is not specified in a resource-ref in sun-web.xml, or there is no sun-web.xml file, the resource-ref-name defined in web.xml is
used. A warning message is logged recording the JNDI name used to
look up the resource.

You
can keep the generated source for JSP files by adding the -keepgenerated flag to the jsp-config element in sun-web.xml. If you include this property when you deploy
the WAR module, the generated source is kept in domain-dir/generated/jsp/j2ee-apps/app-name/module-name, if it is in an application, or domain-dir/generated/jsp/j2ee-modules/module-name,
if it is in an individually deployed web module.

After a web application is undeployed, its HttpSession information is not immediately removed if sessions are
persistent. HttpSession information is removed
in the subsequent cycle, when timed out sessions are removed. Therefore,
you should disable a web application before undeploying it if sessions
are persistent.