I'm sorry if i'm asking something which have been asked 1000 times but i searched for it and didn't find anything:)
I have 2 tomcat installations. tomcat 6 on windows and tomcat 7 on linux machine. i have a project which uses spring and has some static content which i'd like to be able to serve without making the requests go through Spring.
here's my servlet configuration:
<servlet-mapping>
<servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>/static/*</url-pattern>
</servlet-mapping>
my static files are located in "static" folder next to WEB-INF folder.
Now the funny thing is that on tomcat7 when i do a request to http://myserver.com/myproject/static/css/main.css it looks for the file in /webapps/myproject/static/css/main.css but on tomcat6 it looks for it in /webapps/myproject/css/main.css and produces an error saying that there's no such file.
what configuration should i tweak for both servers to work the same way?