title: Tomcat manager deployement via context file fails
body: <p>I'm trying to deploy a web app via tomcat manager by only specifying the context file, as described in the tomcat 7 documentation at <a href="http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html#Deploy_A_New_Application_from_a_Local_Path" rel="nofollow">http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html#Deploy_A_New_Application_from_a_Local_Path</a>.</p>
  
  <p>I'm issuing the following call to the manager <a href="http://myhost.mydomain.com:8080/manager/text/deploy?config=file:/opt/company/product/conf/mycontext.xml" rel="nofollow">http://myhost.mydomain.com:8080/manager/text/deploy?config=file:/opt/company/product/conf/mycontext.xml</a></p>
  
  <p>The context file looks like the following : </p>
  
  <pre><code>&lt;!DOCTYPE project&gt;
  &lt;Context path="/myapp" docBase="/opt/company/product/lib/myapp.war" antiResourceLocking="false" &gt;
  &lt;/Context&gt;
  </code></pre>
  
  <p>And the manager indicates an error : FAIL - Invalid context path null was specified.</p>
  
  <p>Now I can deploy the app if I use the call that also provides the deployment url (path). However I would expect Tomcat to read my context file and determine by itself the path from the file definition.</p>
  
  <p>Is this an issue in the tomcat 7 manager and is there a way of bypassing this ?</p>
  
  <p>Thanks for any pointers</p>