3 Replies Latest reply on Jun 24, 2009 10:02 AM by Peter Chandler

    wsdl2java shell script problem

    Peter Chandler Master

      just intalled:

         fuse-services-framework-2.2.0.0

       

      OS:

         x86_64 GNU/Linux

       

      Tried running:

      fuse-services-framework-2.2.0.0/tools/bin/wsdl2java

       

      Got:

      cygwin=false: Command not found.

      darwin=false: Command not found.

      case: Too many arguments.

       

      Any ideas?

       

      Thanks in advance,

       

      Peter.

        • 1. Re: wsdl2java shell script problem
          Stan Lewis Novice

          What if you run "bash fuse-services-framework-2.2.0.0/tools/bin/wsdl2java"?  If not what are you running for a shell?

          • 2. Re: wsdl2java shell script problem
            Peter Chandler Master

            Using the Bourne-again "Bash" shell fixed the problem. THANKS.

             

            However, I did get a new issue (see below). I think that wsdl2java is trying to get a connect to host www.w3.org to read file XMLSchema.xsd. I then get a network error ?Unknown Host?. Hence a problem with my internet/network connectivity? What do you think? Concur?

             

            Peter.

             

            bash-3.00$ wsdl2java -verbose soap-bindings.wsdl

            Loading FrontEnd jaxws ...

            Loading DataBinding jaxb ...

            wsdl2java -verbose soap-bindings.wsdl

            wsdl2java - Apache CXF 2.2.0.0-fuse

             

             

            WSDLToJava Error: org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create wsd l definition from : file:soap-bindings.wsdl

            Caused by : WSDLException (at /wsdl:definitions/wsdl:import/wsdl:definitions/wsd l:import/wsdl:definitions/wsdl:types/xsd:schema/xsd:schema): faultCode=PARSER_ER ROR: Problem parsing 'http://www.w3.org/2001/XMLSchema.xsd'.: java.net.UnknownHo stException: www.w3.org

             

            org.apache.cxf.tools.common.ToolException: org.apache.cxf.wsdl11.WSDLRuntimeExce ption: Fail to create wsdl definition from : file:soap-bindings.wsdl

            Caused by : WSDLException (at /wsdl:definitions/wsdl:import/wsdl:definitions/wsd l:import/wsdl:definitions/wsdl:types/xsd:schema/xsd:schema): faultCode=PARSER_ER ROR: Problem parsing 'http://www.w3.org/2001/XMLSchema.xsd'.: java.net.UnknownHo stException: www.w3.org

                    at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaCon tainer.java:224)

                    at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.ja va:83)

                    at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:103)

                    at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:173)

            Caused by: org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create wsdl defin ition from : file:soap-bindings.wsdl

            Caused by : WSDLException (at /wsdl:definitions/wsdl:import/wsdl:definitions/wsd l:import/wsdl:definitions/wsdl:types/xsd:schema/xsd:schema): faultCode=PARSER_ER ROR: Problem parsing 'http://www.w3.org/2001/XMLSchema.xsd'.: java.net.UnknownHo stException: www.w3.org

                    at org.apache.cxf.wsdl11.WSDLDefinitionBuilder.parseWSDL(WSDLDefinitionB uilder.java:97)

                    at org.apache.cxf.wsdl11.WSDLDefinitionBuilder.build(WSDLDefinitionBuild er.java:69)

                    at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuil der.build(JAXWSDefinitionBuilder.java:84)

                    at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuil der.build(JAXWSDefinitionBuilder.java:61)

                    at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaCon tainer.java:123)

                    at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaCon tainer.java:216)

                    ... 3 more

            Caused by: javax.wsdl.WSDLException: WSDLException (at /wsdl:definitions/wsdl:im port/wsdl:definitions/wsdl:import/wsdl:definitions/wsdl:types/xsd:schema/xsd:sch ema): faultCode=PARSER_ERROR: Problem parsing 'http://www.w3.org/2001/XMLSchema. xsd'.: java.net.UnknownHostException: www.w3.org

                    at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(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.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.parseImport(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.parseImport(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.WSDLManagerImpl.loadDefinition(WSDLManagerImpl. java:210)

                    at org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.j ava:175)

                    at org.apache.cxf.wsdl11.WSDLDefinitionBuilder.parseWSDL(WSDLDefinitionB uilder.java:78)

                    ... 8 more

            Caused by: java.net.UnknownHostException: www.w3.org

                    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)

                    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)

                    at java.net.Socket.connect(Socket.java:519)

                    at java.net.Socket.connect(Socket.java:469)

                    at sun.net.NetworkClient.doConnect(NetworkClient.java:163)

                    at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)

                    at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)

                    at sun.net.www.http.HttpClient.(HttpClient.java:233)

                    at sun.net.www.http.HttpClient.New(HttpClient.java:306)

                    at sun.net.www.http.HttpClient.New(HttpClient.java:323)

                    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLC onnection.java:852)

                    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne ction.java:793)

                    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection .java:718)

                    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon nection.java:1041)

                    at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrent Entity(XMLEntityManager.java:677)

                    at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineD ocVersion(XMLVersionDetector.java:186)

                    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X ML11Configuration.java:771)

                    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X ML11Configuration.java:737)

                    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser. java:107)

                    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser. java:225)

                    at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Doc umentBuilderImpl.java:283)

                    ... 28 more

            bash-3.00$

            • 3. Re: wsdl2java shell script problem
              Peter Chandler Master

              Yes. My network issue. Thanks again,