Seems I can't figure out how to deploy a web application to a path I want on tomcat 7. Here are the details:
- I have a war file called myapp.war which I want to be located under /home/user/myapp.war (not where tomcat is installed).
- I would like to have it deployed on tomcat under the path /api/1/
If I place myapp.war directly under the webapps directory of tomcat it will deploy, but under the path /myapp, which is not what I need. I'm also trying to avoid editing tomcat's server.xml file.
I understand there are ways to do it using context files, but anything I tried just didn't work, looks like I'm missing something. If someone could describe the precise configuration to have this working it will be most appreciated.
Thanks! Ariel