From 5b790fc2c3bab62a1ba97a7d921e2466e3f6304c Mon Sep 17 00:00:00 2001 From: antelder Date: Fri, 3 Jul 2009 19:03:36 +0000 Subject: Don't use url for systemId as it fails when url is for a nested ear resource as the archive: protocol isn't known to woodstock url handler. As far as i can see we don't need the systemId for anything and the build is working fine without it git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@790985 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/tuscany/sca/assembly/xml/ComponentTypeDocumentProcessor.java | 2 +- .../sca/contribution/xml/ContributionMetadataDocumentProcessor.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/branches/sca-java-1.x/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ComponentTypeDocumentProcessor.java b/branches/sca-java-1.x/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ComponentTypeDocumentProcessor.java index 6a4bc2ba23..7681115149 100644 --- a/branches/sca-java-1.x/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ComponentTypeDocumentProcessor.java +++ b/branches/sca-java-1.x/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/ComponentTypeDocumentProcessor.java @@ -80,7 +80,7 @@ public class ComponentTypeDocumentProcessor extends BaseAssemblyProcessor implem URLConnection connection = url.openConnection(); connection.setUseCaches(false); urlStream = connection.getInputStream(); - XMLStreamReader reader = inputFactory.createXMLStreamReader(url.toString(), urlStream); + XMLStreamReader reader = inputFactory.createXMLStreamReader(urlStream); reader.nextTag(); // Reader the componentType model diff --git a/branches/sca-java-1.x/modules/contribution-xml/src/main/java/org/apache/tuscany/sca/contribution/xml/ContributionMetadataDocumentProcessor.java b/branches/sca-java-1.x/modules/contribution-xml/src/main/java/org/apache/tuscany/sca/contribution/xml/ContributionMetadataDocumentProcessor.java index f74a87d890..f67004ba4d 100644 --- a/branches/sca-java-1.x/modules/contribution-xml/src/main/java/org/apache/tuscany/sca/contribution/xml/ContributionMetadataDocumentProcessor.java +++ b/branches/sca-java-1.x/modules/contribution-xml/src/main/java/org/apache/tuscany/sca/contribution/xml/ContributionMetadataDocumentProcessor.java @@ -97,7 +97,7 @@ public class ContributionMetadataDocumentProcessor implements URLArtifactProcess URLConnection connection = url.openConnection(); connection.setUseCaches(false); urlStream = connection.getInputStream(); - XMLStreamReader reader = inputFactory.createXMLStreamReader(url.toString(), urlStream); + XMLStreamReader reader = inputFactory.createXMLStreamReader(urlStream); reader.nextTag(); // Read the contribution model -- cgit v1.2.3