Skip to content

Commit 2a18b1d

Browse files
committed
SWS-1090 - Add support for 'wsjar' protocol.
1 parent 41a38f7 commit 2a18b1d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-xml/src/main/java/org/springframework/xml/validation/SchemaFactoryUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
import org.apache.commons.logging.Log;
2222
import org.apache.commons.logging.LogFactory;
23+
import org.springframework.util.ResourceUtils;
2324
import org.xml.sax.SAXNotRecognizedException;
2425
import org.xml.sax.SAXNotSupportedException;
2526

@@ -49,7 +50,7 @@ public static SchemaFactory newInstance(String schemaLanguage) {
4950
}
5051

5152
try {
52-
schemaFactory.setProperty(XMLConstants.ACCESS_EXTERNAL_SCHEMA, "file,jar:file");
53+
schemaFactory.setProperty(XMLConstants.ACCESS_EXTERNAL_SCHEMA, ResourceUtils.URL_PROTOCOL_FILE + "," + "jar:file" + "," + ResourceUtils.URL_PROTOCOL_WSJAR);
5354
} catch (SAXNotRecognizedException | SAXNotSupportedException e) {
5455
if (log.isWarnEnabled()) {
5556
log.warn(XMLConstants.ACCESS_EXTERNAL_SCHEMA + " property not supported by " + schemaFactory.getClass().getCanonicalName());

0 commit comments

Comments
 (0)