Switch to Servlet/HttpServlet instead of ServletEngine/Servlet + set correct path to htpasswd + htdigest files