From a3f652eba313bb8e3911bded0d4b1eac04eb360c Mon Sep 17 00:00:00 2001 From: lresende Date: Tue, 26 Jan 2010 23:11:43 +0000 Subject: 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 --- .../implementation/spring/introspect/SpringXMLComponentTypeLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit v1.2.3