cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "HJ Lee (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CXF-1140) wsdl2java failed if the schema import use the relative path to a url
Date Tue, 27 Nov 2007 17:27:43 GMT

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

HJ Lee updated CXF-1140:
------------------------

    Attachment: ECMA-site.cap

The root cause of this issue is related to the maximum number of HTTP connection. The http://www.ecma-international.org
site allows max 20 HTTP connection per client machine. The wsdl2java opens many HTTP connection
in parallel, when it opens 20th HTTP connection, the server responds with "503 Service Temporarily
Unavailable". Please see the attached Ethereal capture file. 

On the other hand wsimport from Metro project works OK with the same schema, wsimport uses
only one HTTP connection to retrieve all the schemas from the server. 

This will be a big issue when a project has a many complicated schemas. The best solution
will be adding option of max HTTP connection.

Thanks

> 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
>
>         Attachments: ECMA-site.cap
>
>
> 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.


Mime
View raw message