I am using Tomcat 8.5, with a webapp deployed to the default webapps directory (/var/lib/tomcat8/webpps/MyWebApp.war).
Now I would like to run a second instance of that same webapp. I thought that I could create a new MyWebApp2.xml file in the context directory (/etc/tomcat8/Catalina/localhost/MyWebApp2.xml), and set the appBase="MyWebApp.war", so that I could run the second instance without needing to upload and maintain a separate war file.
However, when I do this, I get this Tomcat error:
docBase [/var/lib/tomcat8/webapps/MyWebApp.war] inside the host appBase has been specified, and will be ignored
It sounds like I could solve this problem by either 1) uploading a separate .war file with a different name, or 2) placing the first .war file outside of the default webapp folder, but I don't like either of these solutions. Shouldn't it be possible to run multiple instances of an application from a single .war file in the default webapps directory?