Search code examples
eclipsetomcatservletsredirect-loop

Getting a redirect loop accessing a webapp's welcome page


I'm not sure why, but accessing my webapp at http://localhost:8080/MyApp is giving me a redirect loop.

I have no servlets or servlet mappings, and my welcome page is at Tomcat/webapps/MyApp/index.html, which is a simple "hello world" html page.

Any ideas? Why would Tomcat be redirecting? Maybe something is configured wrong in eclipse?


Solution

  • Assuming that you have indeed no servlets or filters mapped on /* or /, then this can only happen if the first match as defined in a <welcome-file> of webapp's web.xml is basically referring to /.