For stand-alone web module files, the application context root can be specified in the JBoss deployment descriptor, jboss-web.xml. This rule detects the presence of the <context-root> element in the jboss-web.xml file. In the source scanner, the quick fix applies that setting to the appropriate WebSphere traditional or Liberty extension file.
In the case of Enterprise Application Archives, the context root information in the application.xml deployment descriptor for the EAR file takes precedence over the context root in the deployment descriptor for the web module. This quick fix copies the context root information even if the value is not used because of the presence of an application.xml file.