Merge 1.x trunk fix to locate spring resources within jars
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@776968 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1a711e35c4
commit
8f745a29d6
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue