As identified by this answer on Stack Overflow, ErrorPageSecurityFilter extends HttpFilter which is new in Servlet 4.0. As we support deployment to Servlet 3.1-compatible containers, we should implement Filter instead and then cast the request and response to HttpServletRequest and HttpServletResponse as needed.
As identified by this answer on Stack Overflow,
ErrorPageSecurityFilterextendsHttpFilterwhich is new in Servlet 4.0. As we support deployment to Servlet 3.1-compatible containers, we should implementFilterinstead and then cast the request and response toHttpServletRequestandHttpServletResponseas needed.