Try moving resources and servlets to distinct endpoints.