From 4c241785e71d32cb304498b32a1ef1ec3b89f66f Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Wed, 3 Jan 2024 20:20:15 +0900 Subject: [PATCH] Support jar:nested in SchemaFactoryUtils (#1401) * Support jar:nested in SchemaFactoryUtils Closes gh-1393 * Update SchemaFactoryUtils Required nested not jar:nested --------- Co-authored-by: Corneil du Plessis --- .../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 eb72d97f..eb05313d 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 class SchemaFactoryUtils { try { schemaFactory.setProperty(XMLConstants.ACCESS_EXTERNAL_SCHEMA, - ResourceUtils.URL_PROTOCOL_FILE + "," + "jar:file" + "," + 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 "