String webXmlUrlString = webXmlUrl.toExternalForm();
String oldProp = System.getProperty("org.mortbay.xml.XmlParser.Validating",
"false");
try {
System.setProperty("org.mortbay.xml.XmlParser.Validating", "false");
WebXmlConfiguration wxc = new WebXmlConfiguration();
ServletHandler myServletHandler = new ServletHandler();
wxc.setWebAppContext(new WebAppContext(null, null, myServletHandler, null));
wxc.configure(webXmlUrlString);
ServletMapping[] mappings = myServletHandler.getServletMappings();
ServletHolder[] servlets = myServletHandler.getServlets();
Map<String, String> servletNameToClassName = new HashMap<String, String>();
Map<String, Set<String>> classNameToPaths = new HashMap<String, Set<String>>();
Map<String, String> classNameToServletName = new HashMap<String, String>();