title: Where to put robots.txt in tomcat 7?
body: <p>I'm using Tomcat 7 to host my application. 
  I've used a ROOT.xml file under tomcat-home\conf\Catalina\localhost</p>
  
  <pre><code>&lt;Context 
    docBase="C:\Program Files\Apache Software Foundation\Tomcat 7.0\mywebapp\MyApplication" 
    path="" 
    reloadable="true" 
  /&gt;
  </code></pre>
  
  <p>This is to load my webapp in the root context.</p>
  
  <p>But now I'm confused as to where to put the <code>robots.txt</code> and <code>sitemap.xml</code> files. When I put in under C:\Program Files\Apache Software Foundation\Tomcat 7.0\mywebapp\MyApplication, it doesn't show up.</p>
  
  <p>I've also tried placing it inside <code>C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\ROOT</code> , just in case. But nothing works. I'm still getting 404 not found.
  Can anyone please guide.</p>
  
  <p>p.s. My web application runs fine. It's just that my <code>robots.txt</code> file is unreachable.</p>
  
  <h2>EDIT</h2>
  
  <p>My web.xml file:</p>
  
  <pre><code>    &lt;filter&gt;
          &lt;filter-name&gt;springSecurityFilterChain&lt;/filter-name&gt;
          &lt;filter-class&gt;org.springframework.web.filter.DelegatingFilterProxy
          &lt;/filter-class&gt;
      &lt;/filter&gt;
  
      &lt;filter-mapping&gt;
          &lt;filter-name&gt;springSecurityFilterChain&lt;/filter-name&gt;
          &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
      &lt;/filter-mapping&gt;
  </code></pre>