This is an automated email from the ASF dual-hosted git repository.
coheigea pushed a commit to branch 4.1.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git
The following commit(s) were added to refs/heads/4.1.x-fixes by this push:
new 760945f99ee CXF-9214 WSDLs and XSDs cannot be loaded from class path
on GraalVM (#3124)
760945f99ee is described below
commit 760945f99ee5d5e1011c52619c08d9fdd10ec313
Author: Peter Palaga <[email protected]>
AuthorDate: Wed May 20 09:57:04 2026 +0200
CXF-9214 WSDLs and XSDs cannot be loaded from class path on GraalVM (#3124)
(cherry picked from commit a82bbfcfe743fb1beff0380b1ebdd8a5bfcfee7b)
---
core/src/main/java/org/apache/cxf/resource/URIResolver.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/core/src/main/java/org/apache/cxf/resource/URIResolver.java
b/core/src/main/java/org/apache/cxf/resource/URIResolver.java
index a694fb1fe61..55ed557bef7 100644
--- a/core/src/main/java/org/apache/cxf/resource/URIResolver.java
+++ b/core/src/main/java/org/apache/cxf/resource/URIResolver.java
@@ -65,7 +65,8 @@ public class URIResolver implements AutoCloseable {
"org.apache.cxf.resource.uriresolver.allowedSchemes";
private static final Set<String> DEFAULT_ALLOWED_URL_SCHEMES =
Collections.unmodifiableSet(
- new HashSet<>(Arrays.asList("file", "http", "https", "jar", "zip",
"wsjar", "local", "classpath", "vfs")));
+ new HashSet<>(Arrays.asList("file", "http", "https", "jar", "zip",
"wsjar", "local", "classpath", "vfs",
+ "resource")));
private Map<String, LoadingByteArrayOutputStream> cache = new HashMap<>();
private File file;
@@ -490,7 +491,7 @@ public class URIResolver implements AutoCloseable {
public boolean isResolved() {
return is != null;
}
-
+
@Override
public void close() throws IOException {
if (isResolved()) {