Container[] contexts = findChildren();
for (int i = 0; i < contexts.length; i++) {
try {
Context currentContext = (Context) contexts[i];
String[] servletMappings =
currentContext.findServletMappings();
for (int j = 0; j < servletMappings.length; j++) {
String currentMapping = servletMappings[j];
if (!currentMapping.equals("/*")) {
currentContext.removeServletMapping(currentMapping);
}