You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by lr...@apache.org on 2008/07/27 05:46:47 UTC

svn commit: r680063 - /tuscany/java/sca/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/xml/SpringXMLComponentTypeLoader.java

Author: lresende
Date: Sat Jul 26 20:46:47 2008
New Revision: 680063

URL: http://svn.apache.org/viewvc?rev=680063&view=rev
Log:
TUSCANY-1921 - Properly creating the jar url for the application context artifact

Modified:
    tuscany/java/sca/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/xml/SpringXMLComponentTypeLoader.java

Modified: tuscany/java/sca/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/xml/SpringXMLComponentTypeLoader.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/xml/SpringXMLComponentTypeLoader.java?rev=680063&r1=680062&r2=680063&view=diff
==============================================================================
--- tuscany/java/sca/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/xml/SpringXMLComponentTypeLoader.java (original)
+++ tuscany/java/sca/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/xml/SpringXMLComponentTypeLoader.java Sat Jul 26 20:46:47 2008
@@ -493,13 +493,13 @@
                         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