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


Reply via email to