setJMMarshallerClass(c.getJMMarshallerClass());
setJMUnmarshallerClass(c.getJMUnmarshallerClass());
setJMValidatorClass(c.getJMValidatorClass());
}
} catch (IOException e) {
throw new JAXBException("Failed to load config file " + url, e);
} catch (SAXParseException e) {
Exception f = e.getException() == null ? e : e.getException();
throw new JAXBException("Failed to parse config file " + url +
" at line " + e.getLineNumber() +
", column " + e.getColumnNumber() +
": " + f.getMessage(), f);
} catch (SAXException e) {
Exception f = e.getException() == null ? e : e.getException();
String msg = "Failed to parse config file " + url +": " + f.getMessage();
System.err.println(msg);
throw new JAXBException(msg, f);
} catch (ParserConfigurationException e) {
throw new JAXBException("Failed to create a SAX Parser: " + e.getMessage(), e);
}
}
}
if (first) {
throw new JAXBException("Unable to locate configuration file Configuration.xml in " + packageNames);
}
}