From ade2b0f25cbd125a7659d6554559c6dd9a4dfcce Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Thu, 21 Dec 2023 00:53:31 +0900 Subject: [PATCH 1/2] Support jar:nested in SchemaFactoryUtils Closes gh-1393 --- .../org/springframework/xml/validation/SchemaFactoryUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-xml/src/main/java/org/springframework/xml/validation/SchemaFactoryUtils.java b/spring-xml/src/main/java/org/springframework/xml/validation/SchemaFactoryUtils.java index eb72d97fc..4e97feff8 100644 --- a/spring-xml/src/main/java/org/springframework/xml/validation/SchemaFactoryUtils.java +++ b/spring-xml/src/main/java/org/springframework/xml/validation/SchemaFactoryUtils.java @@ -52,7 +52,7 @@ public static SchemaFactory newInstance(String schemaLanguage) { try { schemaFactory.setProperty(XMLConstants.ACCESS_EXTERNAL_SCHEMA, - ResourceUtils.URL_PROTOCOL_FILE + "," + "jar:file" + "," + ResourceUtils.URL_PROTOCOL_WSJAR); + ResourceUtils.URL_PROTOCOL_FILE + "," + "jar:file" + "," + "jar:nested" + "," + ResourceUtils.URL_PROTOCOL_WSJAR); } catch (SAXNotRecognizedException | SAXNotSupportedException e) { if (log.isWarnEnabled()) { log.warn(XMLConstants.ACCESS_EXTERNAL_SCHEMA + " property not supported by " From 4685b7bf6bdf443bad663437adffdeba103259ac Mon Sep 17 00:00:00 2001 From: Corneil du Plessis Date: Wed, 3 Jan 2024 13:18:49 +0200 Subject: [PATCH 2/2] Update SchemaFactoryUtils Required nested not jar:nested --- .../org/springframework/xml/validation/SchemaFactoryUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-xml/src/main/java/org/springframework/xml/validation/SchemaFactoryUtils.java b/spring-xml/src/main/java/org/springframework/xml/validation/SchemaFactoryUtils.java index 4e97feff8..eb05313d0 100644 --- a/spring-xml/src/main/java/org/springframework/xml/validation/SchemaFactoryUtils.java +++ b/spring-xml/src/main/java/org/springframework/xml/validation/SchemaFactoryUtils.java @@ -52,7 +52,7 @@ public static SchemaFactory newInstance(String schemaLanguage) { try { schemaFactory.setProperty(XMLConstants.ACCESS_EXTERNAL_SCHEMA, - ResourceUtils.URL_PROTOCOL_FILE + "," + "jar:file" + "," + "jar:nested" + "," + ResourceUtils.URL_PROTOCOL_WSJAR); + ResourceUtils.URL_PROTOCOL_FILE + "," + "jar:file" + "," + "nested" + "," + ResourceUtils.URL_PROTOCOL_WSJAR); } catch (SAXNotRecognizedException | SAXNotSupportedException e) { if (log.isWarnEnabled()) { log.warn(XMLConstants.ACCESS_EXTERNAL_SCHEMA + " property not supported by "