I am using Tomcat 7 to host my application. I used the ROOT.xml file under the name tomcat-home \ conf \ Catalina \ localhost
<Context docBase="C:\Program Files\Apache Software Foundation\Tomcat 7.0\mywebapp\MyApplication" path="" reloadable="true" />
This download my webapp in the root context.
But now I'm confused about where to put the robots.txt and sitemap.xml files. When I put under C: \ Program Files \ Apache Software Foundation \ Tomcat 7.0 \ mywebapp \ MyApplication, it does not appear.
I also tried placing it inside C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\ROOT , just in case. But nothing works. I still get 404 not found. Someone can advise.
ps My web application is working fine. Just my robots.txt file is not available.
EDIT
My web.xml file:
<filter> <filter-name>springSecurityFilterChain</filter-name> <filter-class>org.springframework.web.filter.DelegatingFilterProxy </filter-class> </filter> <filter-mapping> <filter-name>springSecurityFilterChain</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
source share