From 1a711e35c4538c3cad2c636bd4547549ea2f7e11 Mon Sep 17 00:00:00 2001 From: antelder Date: Thu, 21 May 2009 06:19:20 +0000 Subject: Fix implementation.spring to correctly locate spring resources nested within jars git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@776966 13f79535-47bb-0310-9956-ffa450edef68 --- .../implementation/spring/introspect/SpringXMLComponentTypeLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'branches/sca-java-1.x/modules/implementation-spring/src/main') diff --git a/branches/sca-java-1.x/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java b/branches/sca-java-1.x/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java index 261f48461f..a1f278bc2b 100644 --- a/branches/sca-java-1.x/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java +++ b/branches/sca-java-1.x/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/introspect/SpringXMLComponentTypeLoader.java @@ -146,7 +146,7 @@ public class SpringXMLComponentTypeLoader { implementation.setURI(resource.toString()); // FIXME - need a better way to handle the XMLInputFactory than allocating a new one every time XMLInputFactory xmlFactory = XMLInputFactory.newInstance(); - reader = xmlFactory.createXMLStreamReader(new FileInputStream(new File(resource.toURI()))); + reader = xmlFactory.createXMLStreamReader(resource.openStream()); // System.out.println("Spring TypeLoader - starting to read context file"); readContextDefinition(reader, beans, services, references, scaproperties); -- cgit v1.2.3