URL resourceBase = new File(uriRoot).getCanonicalFile().toURI().toURL();
context = new JspCServletContext(log, resourceBase, classLoader);
TldScanner scanner = new TldScanner(context, true, validateXml);
try {
scanner.scan();
} catch (SAXException e) {
throw new JasperException(e);
}
tldLocationsCache = new TldLocationsCache(scanner.getTaglibMap());
context.setAttribute(TldLocationsCache.KEY, tldLocationsCache);