diff options
-rw-r--r-- | java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscoverer.java | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscoverer.java b/java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscoverer.java index 918f7beebd..e90aa7c0d3 100644 --- a/java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscoverer.java +++ b/java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscoverer.java @@ -141,8 +141,15 @@ public class ContextClassLoaderServiceDiscoverer implements ServiceDiscoverer { } else { int j = declaration.indexOf('='); if (j == -1) { - attributes.put("class", declaration.trim()); - return attributes; + // TUSCANY-xxx: handle Saxon xpath jar funny + if (declaration.startsWith("http\\://")) { + int k = declaration.lastIndexOf(':'); + attributes.put("class", declaration.substring(k+1).trim()); + return attributes; + } else { + attributes.put("class", declaration.trim()); + return attributes; + } } else { declaration = ";" + declaration; } |