You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Luciano Resende (JIRA)" <tu...@ws.apache.org> on 2007/07/20 19:57:06 UTC
[jira] Commented: (TUSCANY-1343) java.io.FileNotFoundException:
org.apache.tuscany.sca.interfacedef.wsdl.xml.WSDLDocumentProcessor$WSDLLocatorImpl.getImportInputSource(WSDLDocumentProcessor.java:86)
[ https://issues.apache.org/jira/browse/TUSCANY-1343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12514267 ]
Luciano Resende commented on TUSCANY-1343:
------------------------------------------
I think the problem here is not with the PackageProcessor, but how the WSDL processors are making internal import resolution internally, and not using Tuscany that.. Another scenario that I experienced while working on import/export, was importing XSD from different contribution in a WSDL, in this case, even tough the XSD was being resolved ok in the Contribution layer, the WSDL processor didn't have any knowledge of the Contribution import/export on it's internal resolution mechanism. My guess here is that we need to find a way to make the two resolution mechanism to cooperate among themselves, but I'd have to investigate it further.
> java.io.FileNotFoundException: org.apache.tuscany.sca.interfacedef.wsdl.xml.WSDLDocumentProcessor$WSDLLocatorImpl.getImportInputSource(WSDLDocumentProcessor.java:86)
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: TUSCANY-1343
> URL: https://issues.apache.org/jira/browse/TUSCANY-1343
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Axis Binding Extension
> Affects Versions: Java-SCA-0.91
> Environment: windows XP
> Reporter: Yang Lei
> Fix For: Java-SCA-Next
>
>
> WSDLDocumentP < getBaseURI Exit
> PriceQuoteService.wsdl
> [6/13/07 15:20:11:293 CDT] 00000016 WSDLDocumentP > getImportInputSource Entry
> c:/PriceQuoteService.wsdl
> PriceQuoteService_schema1.xsd
> I created a PackageProcessor (FOLDER type) to place the default one. The logic of this processor is to be able to return certain file from a location different from the contribution's location. One kind of this file is WSDL file. Then I got the following error when the wsdl file contains :
> <xsd:import namespace="http://priceQuoteSession" schemaLocation="PriceQuoteService_schema1.xsd"/>
> As the xsd file is in a different location of the wsdl file, shouldnot WSDLDocumentProcessor$WSDLLocatorImpl use the PackageProcessor's resolved artifact URL for loading xsd?
> java.io.FileNotFoundException: ../PriceQuoteService_schema1.xsd (No such file or directory)
> at java.io.FileInputStream.<init>(FileInputStream.java:135)
> at java.io.FileInputStream.<init>(FileInputStream.java:95)
> at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:85)
> at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:176)
> at java.net.URL.openStream(URL.java:1041)
> at org.apache.tuscany.sca.interfacedef.wsdl.xml.WSDLDocumentProcessor$WSDLLocatorImpl.getImportInputSource(WSDLDocumentProcessor.java:86)
> at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
> at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
> at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(Unknown Source)
> at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
> at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> at org.apache.tuscany.sca.interfacedef.wsdl.xml.WSDLDocumentProcessor.read(WSDLDocumentProcessor.java:141)
> at org.apache.tuscany.sca.interfacedef.wsdl.xml.WSDLDocumentProcessor.read(WSDLDocumentProcessor.java:52)
> at org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor.read(ExtensibleURLArtifactProcessor.java:63)
> at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.processReadPhase(ContributionServiceImpl.java:290)
> at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.addContribution(ContributionServiceImpl.java:251)
> at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.contribute(ContributionServiceImpl.java:119)
> at org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain$DomainCompositeHelper.addContribution(EmbeddedSCADomain.java:79)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org