How do I edit my Tomcat Context Node
The Context element represents a web application, which is run within a particular virtual host. Each web application is based on a Web Application Archive (WAR) file, or a corresponding directory containing the corresponding unpacked contents, as described in the Servlet Specification (version 2.2 or later). For more information about web application archives, you can download the Servlet Specification, and review the Tomcat Application Developer’s Guide.
The web application used to process each HTTP request is selected by Catalina based on matching the longest possible prefix of the Request URI against the context path of each defined Context. Once selected, that Context will select an appropriate servlet to process the incoming request, according to the servlet mappings defined in the web application deployment descriptor file (which MUST be located at /WEB-INF/web.xml within the web app’s directory hierarchy).
You can store context nodes in individual files (with a “.xml” extension) in the $CATALINA_HOME/conf/enginename/hostname/ directory to deploy a context.xml file upload it as an individual file in your /META-INF/context.xml inside the application files.