سؤال

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?

هل كانت مفيدة؟

المحلول

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 /.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top