You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "maomaode (JIRA)" <ji...@apache.org> on 2007/10/26 09:01:58 UTC

[jira] Commented: (CXF-1140) wsdl2java failed if the schema import use the relative path to a url

    [ https://issues.apache.org/jira/browse/CXF-1140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12537857 ] 

maomaode commented on CXF-1140:
-------------------------------

I can not reproduce the error, I've created a similar project, but with a simple wsdl, the import is like this

wsdl import a schema1 (using the absolute url, i.e http://localhost/schema1.xsd) which includes a schema2(relative path to the schema1) which includes a schema3(relative path to the schema2)

I put the schemas on a web server, can can be accessed through the http://localhost/schmea1

I got the wsdl2java passed

Then I retry your testcase, the error message actually is different:

Caused by : WSDLException (at /definitions/types/xs:schema/xsd:schema): faultCod
e=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'call-ba
ck-call-related.xsd' relative to document base 'http://www.ecma-international.or
g/standards/ecma-323/csta/ed3/csta.xsd'


So, I would guess it's the network access problem, can you just simplify your includes?

> wsdl2java failed if the schema import use the relative path to a url
> --------------------------------------------------------------------
>
>                 Key: CXF-1140
>                 URL: https://issues.apache.org/jira/browse/CXF-1140
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.0.2
>            Reporter: maomaode
>            Assignee: maomaode
>             Fix For: 2.0.3
>
>
> wsdl2java http://www.nabble.com/file/p13415060/csta-all.wsdl will give me
> org.apache.cxf.tools.common.ToolException: java.lang.RuntimeException: Fail to c
> reate wsdl definition from : http://www.nabble.com/file/p13415060/csta-all.wsdl
> Caused by : WSDLException (at /definitions/types/xs:schema/xsd:schema): faultCod
> e=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'camp-on
> -call.xsd' relative to document base 'http://www.ecma-international.org/standard
> s/ecma-323/csta/ed3/csta.xsd'
>         at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaCon
> tainer.java:267)
>         at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.ja
> va:83)
>         at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:102)
>         at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:171)
> Caused by: java.lang.RuntimeException: Fail to create wsdl definition from : htt
> p://www.nabble.com/file/p13415060/csta-all.wsdl
> Caused by : WSDLException (at /definitions/types/xs:schema/xsd:schema): faultCod
> e=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'camp-on
> -call.xsd' relative to document base 'http://www.ecma-international.org/standard
> s/ecma-323/csta/ed3/csta.xsd'
>         at org.apache.cxf.wsdl11.WSDLDefinitionBuilder.parseWSDL(WSDLDefinitionB
> uilder.java:144)
>         at org.apache.cxf.wsdl11.WSDLDefinitionBuilder.build(WSDLDefinitionBuild
> er.java:113)
>         at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuil
> der.build(JAXWSDefinitionBuilder.java:90)
>         at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuil
> der.build(JAXWSDefinitionBuilder.java:63)
>         at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaCon
> tainer.java:151)
>         at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaCon
> tainer.java:259)
>         ... 3 more
> Caused by: javax.wsdl.WSDLException: WSDLException (at /definitions/types/xs:sch
> ema/xsd:schema): faultCode=OTHER_ERROR: Unable to locate with a locator the sche
> ma referenced at 'camp-on-call.xsd' relative to document base 'http://www.ecma-i
> nternational.org/standards/ecma-323/csta/ed3/csta.xsd'
>         at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
>         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.cxf.wsdl11.WSDLDefinitionBuilder.parseWSDL(WSDLDefinitionB
> uilder.java:125)
>         ... 8 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.