I want to deploy web application in directory(e.g \Users\username\myapps\app1) other than webapps folder.
I know to how to change "appBase" other than webapps by setting "appBase" attribute in "host" tag in server.xml in conf directory.
But problem is, I don't want to change whole webapps directory, I just want to deploy one application not in webapps directory.
context.xml file placed in the
You can specify the absolute path or relative path in the
<Context docBase="/Users/username/myapps/app1"> </Context>
PS (from the tomcat doc):
It is NOT recommended to place elements directly in the server.xml file. This is because it makes modifying the Context configuration more invasive since the main
conf/server.xmlfile cannot be reloaded without restarting Tomcat.