Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-1140

wsdl2java failed if the schema import use the relative path to a url

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.2
    • 2.0.10, 2.1.4
    • Tooling
    • None

    Description

      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

      Attachments

        1. ECMA-site.cap
          649 kB
          HJ Lee

        Activity

          People

            dkulp Daniel Kulp
            maomaode maomaode
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: