diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/XMLUtil.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/XMLUtil.java index 890130c262..5c8af6a430 100644 --- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/XMLUtil.java +++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/utils/XMLUtil.java @@ -323,7 +323,7 @@ public final class XMLUtil { public static void validate(final Node node, final String schemaFile) throws Exception { SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); - Schema schema = factory.newSchema(findResource(schemaFile)); + Schema schema = factory.newSchema(new URL(findResource(schemaFile).toURI().toASCIIString())); Validator validator = schema.newValidator(); // validate the DOM tree diff --git a/artemis-distribution/src/test/scripts/validate-spaces.sh b/artemis-distribution/src/test/scripts/validate-spaces.sh index 391773335d..fd9c21ceab 100755 --- a/artemis-distribution/src/test/scripts/validate-spaces.sh +++ b/artemis-distribution/src/test/scripts/validate-spaces.sh @@ -18,4 +18,4 @@ # This script will validate the distribution works with folders with spaces on Linux machines -./validate-instalation.sh with\ spaces\ And\ Weird\ %26\ Characters +./validate-instalation.sh with\ spaces\ And\ Weird\ %26\ Characters\ Čeština\ 漢字\ водка\ 昨夜のコ\ ﷹ‬ﷸ‬ \ No newline at end of file