}
//we found web.xml, if it won't parse that's an error.
try {
// parse it
XmlObject parsed = SchemaConversionUtils.parse(specDD);
WebAppDocument webAppDoc = SchemaConversionUtils.convertToServletSchema(parsed);
webApp = webAppDoc.getWebApp();
} catch (XmlException xmle) {
throw new DeploymentException("Error parsing web.xml", xmle);
}
check(webApp);