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

Fail to Create Top Down Web Service from WSDL, if WSDL path has spaces in between

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.6
    • 2.2.7
    • None
    • None
    • Windows XP, Eclipse Platform Version: 3.5.0,Apache CXF v2.2.6

    • Unknown

    Description

      Dynamic Web Project is created with following inputs (Make sure that the workspace where project is created has spaces in between),
      for me project location is :C:/Documents and Settings/achandna/Desktop/Extra-Jars/TestNewCXF

      Target runtime :Apache Tomcat v6.0
      Dynamic web module version:2.5
      Configuration :CXF Web Services Project v2.5
      CXF Home is set to Apache CXF v2.2.6

      I copied a wsdl into the project and tried to create a Bottom Up web Service by navigating through the wizard, but I am getting the following Exception

      ////////////////////////Exception Trace///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
      WSDLToJava Error: org.apache.cxf.tools.common.ToolException: java.net.URISyntaxException: Illegal character in path at index 18: file:/C:/Documents and Settings/achandna/Desktop/Extra-Jars/TestNewCXF/WebContent/wsdl/addimpl.wsdl

      org.apache.cxf.tools.common.ToolException: org.apache.cxf.tools.common.ToolException: java.net.URISyntaxException: Illegal character in path at index 18: file:/C:/Documents and Settings/achandna/Desktop/Extra-Jars/TestNewCXF/WebContent/wsdl/addimpl.wsdl
      at org.apache.cxf.tools.validator.internal.WSDL11Validator.getWSDLDoc(WSDL11Validator.java:96)
      at org.apache.cxf.tools.validator.internal.WSDL11Validator.isValid(WSDL11Validator.java:111)
      at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.validate(JAXWSDefinitionBuilder.java:201)
      at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.validate(JAXWSDefinitionBuilder.java:61)
      at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:167)
      at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:128)
      at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:271)
      at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
      at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)
      at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86)
      at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:184)
      Caused by: org.apache.cxf.tools.common.ToolException: java.net.URISyntaxException: Illegal character in path at index 18: file:/C:/Documents and Settings/achandna/Desktop/Extra-Jars/TestNewCXF/WebContent/wsdl/addimpl.wsdl
      at org.apache.cxf.tools.validator.internal.Stax2DOM.getDocument(Stax2DOM.java:51)
      at org.apache.cxf.tools.validator.internal.WSDL11Validator.getWSDLDoc(WSDL11Validator.java:91)
      ... 10 more
      Caused by: java.net.URISyntaxException: Illegal character in path at index 18: file:/C:/Documents and Settings/achandna/Desktop/Extra-Jars/TestNewCXF/WebContent/wsdl/addimpl.wsdl
      at java.net.URI$Parser.fail(URI.java:2816)
      at java.net.URI$Parser.checkChars(URI.java:2989)
      at java.net.URI$Parser.parseHierarchical(URI.java:3073)
      at java.net.URI$Parser.parse(URI.java:3021)
      at java.net.URI.<init>(URI.java:578)
      at org.apache.cxf.tools.validator.internal.Stax2DOM.getDocument(Stax2DOM.java:43)
      ... 11 more
      ////////////////////////Exception Trace///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            achandna Amandeep Chandna
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: