I want to use the @WebServlet annotation in a Java EE webapp which runs on Tomcat 8.
@WebServlet
I have read that I need to declare Servlet Version 3.1 in my
Try to add this:
((StandardJarScanner) context.getJarScanner()).setScanAllDirectories(true);