LOGGER.error("Unable to access schema " + schema);
}
if (is != null) {
Source src = new StreamSource(is, LOG4J_XSD);
SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
Schema schema = null;
try {
schema = factory.newSchema(src);
} catch (SAXException ex) {
LOGGER.error("Error parsing Log4j schema", ex);
}
if (schema != null) {
validator = schema.newValidator();
try {
validator.validate(new StreamSource(new ByteArrayInputStream(buffer)));
} catch (IOException ioe) {
LOGGER.error("Error reading configuration for validation", ioe);
} catch (SAXException ex) {