Install a new web application, whose web application archive is at the specified URL, into this container with the specified context path. A context path of "" (the empty string) should be used for the root application for this container. Otherwise, the context path must start with a slash.
If this application is successfully installed, a ContainerEvent of type INSTALL_EVENT
will be sent to all registered listeners, with the newly created Context
as an argument.
@param contextPath The context path to which this application shouldbe installed (must be unique)
@param war A URL of type "jar:" that points to a WAR file, or type"file:" that points to an unpacked directory structure containing the web application to be installed
@exception IllegalArgumentException if the specified context pathis malformed (it must be "" or start with a slash)
@exception IllegalStateException if the specified context pathis already attached to an existing web application
@exception IOException if an input/output error was encounteredduring installation