Setting the context-root using application.XML The application.xml file is found in the META-INF subdirectory of the application. This is a deployment descriptor for enterprise applications. A sample snippet of code where the <context-root> is found is given below.
The <context-root> is the child of the <web> tag which is used to define an application module in the server. This element has the <web-uri> and <context-root> as the child elements. The tag <web-uri> gives the information on the location of the web application module. This is given by the path of the .war file. As the name specifies the element <context-root> gives the context root for the application. Lots of samples on the usage of the application.xml file and the context root element is given in the web. If you have access to this file in your server, just check the elements and the values of the application.xml and you will find how to use the different elements in this XML document.
|
|
||
|
|||
“Amazon and the Amazon logo are trademarks of Amazon.com, Inc. or its affiliates.”
Copyright - © 2004 - 2019 - All Rights Reserved.