title: Enable autoDeploy on context Tomcat 7
body: <p>I've been reading that enabling the <code>autoDeploy</code> option will cause to hot deploy an app when putting a new war file. If I just want to set <code>autoDeploy</code> in just one app and not in the entire server I'm supposed to enable it in <code>&lt;app&gt;/META-INF/context.xml</code> am I right?</p>
  
  <p>If so, the file should look like which one of the following?</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Context antiJARLocking="true" path="/TestApp"&gt;
      &lt;autoDeploy&gt;true&lt;/autoDeploy&gt;
  &lt;/Context&gt;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Context antiJARLocking="true" path="/SRC_RichFaces" autoDeploy="true"&gt;
  &lt;/Context&gt;
  </code></pre>
  
  <p>When I try either, there's a warning <code>[SetContextPropertiesRule]{Context} Setting property 'autoDeploy' to 'true' did not find a matching property.</code></p>
  
  <p>Any advice?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Sorry for the inconvenience, I misunderstood the documentation. I have to enable the <code>&lt;Host&gt;</code> attribute <code>autoDeploy</code>.</p>
  
  <p>So I should have in the <strong>context.xml</strong> something like</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Context antiJARLocking="true" path="/TestApp"/&gt;
  &lt;Host autoDeploy="true"/&gt;
  </code></pre>
  
  <p>am I right?</p>