gradle-executable-jar-plugin
gradle-executable-jar-plugin copied to clipboard
SchemaFactory cannot load schemas (*.xsd)
When trying to load schemas (*.xsd) through SchemaFactory, like this:
SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI).newSchema(schemaUrl)
it fails with resource not found, even though the schema can be loaded from the "parent" class.
Might be this happens because SchemaFactory is using the thread's context classloader for loading schemas