Context root for web modules settings

Use this page to specify the context root for web modules during or after installation of an application onto a deployment target.

To view this administrative console page, click Applications > Application Types > WebSphere enterprise applications > application_name > Context root for web modules. This page is the same as the Map context roots for web modules page on the application installation and update wizards.

Web Module

Specifies the name of a web module in the application that you are installing or that you are viewing after installation.

URI

Specifies the location of the module relative to the root of the application EAR file.

Context Root

Specifies the context root of the web application (WAR).

A context root for each web module is defined in the application deployment descriptor during application assembly. Use this field to assign a different context root to a web module. The context root is combined with the defined servlet mapping (from the WAR file) to compose the full URL that users type to access the servlet. For example, if the context root is /gettingstarted and the servlet mapping is MySession, then the URL is http://host:port/gettingstarted/MySession.

[9.0.5.23 or later][Modernized Runtime Extension for Java (MoRE)]In Modernized Runtime Extension for Java (MoRE), if your application sets the web module context-root in the application.xml file, then the product uses that value for the module context-root. If the web module context-root is not set in the application.xml file, but the default-context-root is set in the web archive's web.xml file, then the context-root for the web module is set to the default-context-root. A context-root set in the application.xml takes precedence over a default-context-root set in the web.xml.

[Modernized Runtime Extension for Java (MoRE)]For 9.0.5.23 only, you can change the context root on the Map virtual hosts for web modules page but not after application deployment.