There are circumstances like this one where the reason the ServletRegistration API is unavailable due to application misconfiguration. We should give a more helpful error message than only propagating the Servlet spec violation message.