I have a Java servlet that that handles requests to any url pattern on a Tomcat 6 server.
Now i want to block requests to a specific url pattern by issuing a 404 error. There is a part of the web service that should not be available anymore.
Instead of changing the servlet code, is there a way for me to forcefully issue a 404 error for a specific url pattern using the web.xml file?