summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2008-07-27 03:46:47 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2008-07-27 03:46:47 +0000
commitee4fb6da5a3f23a3c6e6716dfa97b9138c97cf94 (patch)
tree064757c0f4c2e776536d53b35dd0e6666ab25291 /java
parent56e572665cba4b30f4b954e19c1ebabee5cc90d4 (diff)
TUSCANY-1921 - Properly creating the jar url for the application context artifact
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@680063 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java')
-rw-r--r--java/sca/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/xml/SpringXMLComponentTypeLoader.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/sca/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/xml/SpringXMLComponentTypeLoader.java b/java/sca/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/xml/SpringXMLComponentTypeLoader.java
index cf2ebdc701..80dde1be89 100644
--- a/java/sca/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/xml/SpringXMLComponentTypeLoader.java
+++ b/java/sca/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/xml/SpringXMLComponentTypeLoader.java
@@ -493,13 +493,13 @@ public class SpringXMLComponentTypeLoader {
je = jf.getJarEntry(appCtxPath);
if (je != null) {
// TODO return a Spring specific Resource type for jars
- return new UrlResource(new URL("jar:" + locationFile.toURL() + "!/" + appCtxPath));
+ return new UrlResource(new URL("jar:" + locationFile.toURI().toURL() + "!/" + appCtxPath));
}
}
}
je = jf.getJarEntry(APPLICATION_CONTEXT);
if (je != null) {
- return new UrlResource(new URL("jar:" + locationFile.toURI().toURL() + "!" + APPLICATION_CONTEXT));
+ return new UrlResource(new URL("jar:" + locationFile.toURI().toURL() + "!/" + APPLICATION_CONTEXT));
}
} catch (IOException e) {
// bad archive