Context path when the war deployed to tomcat

Most of the times, the name of the war file acts as the context path.

The Context path attribute is ignored unless the path is specified in a hard-coded Context in server.xml, which is strongly discouraged, and doesn't take multilevel paths.
The name of the war file, or the name of the Context xml file in tomcat/conf/Catalina/hostnamebecomes the path of the deployed application.
In your case the latter of the two above is the solution, just make sure you put the .war file outside of the designated appBase for the Host, or you'll deploy the app twice.
In: conf/Catalina/localhost/myapp#path.xml
<?xml version="1.0"?>
<Context docBase="/some/path/to/myapp.war">
</Context>