I have a simple web app that uses basic jsp's and servlets. I have a servlet-filter mapped to /*. I have a welcome file configured to index.jsp
<filter-mapping>
<filter-name>ObjectifyFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
...
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
The problem I am having is when a request for a resource that doesn't exist and should return a 404 error when deployed on the app engine returns a 302 endlessly while trying to append a slash + the welcome file repeatedly.
E.G: A request for http://myyapp.appspot.com/foo (where there is nothing configured for foo) yeilds the following:
On the development server this returns the expected 404. If I remove the filter mapping it also returns the 404 on the app engine.
This seems fairly basic, so I am guessing I have missed something somewhere. Any ideas?
chain.doFilter(request, response);and get the same result. As stickfigure mentioned the ObjectifyFilter doesn't really do much either and simply passes things along. - laduke