summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/trunk/modules/implementation-spring
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2010-01-26 23:11:43 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2010-01-26 23:11:43 +0000
commita3f652eba313bb8e3911bded0d4b1eac04eb360c (patch)
tree1929d8787547c40340565714b0baccc50893b8eb /sca-java-1.x/trunk/modules/implementation-spring
parentb3b51ca45fd68619d630287341694f5e92d9e7fd (diff)
TUSCANY-3434 - Applying the same fix from 1.5.1 (TUSCANY-3292) to fix how the spring context path is calculated
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@903480 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-1.x/trunk/modules/implementation-spring')
-rw-r--r--sca-java-1.x/trunk/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sca-java-1.x/trunk/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java b/sca-java-1.x/trunk/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java
index 3b73ba00c1..581cf5d330 100644
--- a/sca-java-1.x/trunk/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java
+++ b/sca-java-1.x/trunk/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java
@@ -738,7 +738,7 @@ public class SpringXMLComponentTypeLoader {
// Deal with the directory inside a jar file, in case the contribution itself is a JAR file.
try {
if (locationFile.getPath().indexOf(".jar") > 0) {
- String jarPath = url.getPath().substring(6, url.getPath().indexOf("!"));
+ String jarPath = url.getPath().substring(5, url.getPath().indexOf("!"));
JarFile jf = new JarFile(jarPath);
JarEntry je = jf.getJarEntry(url.getPath().substring(url.getPath().indexOf("!/")+2)
+ "/" + "META-INF" + "/" + "MANIFEST.MF");