XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-RC
    • 2.0-RC
    • None
    • None

    Description

      Platform: Win_Vista
      JDK 1.5_10
      TOMCAT 5.5.20

      How to reproduce:
      1. ant war
      2. ant deploy -Dtomcat=true
      3. test the url in browser "http://localhost:8080/helloworld/services/services/hello_world?wsdl", works fine
      4. ant client-servlet -Dbase.url=http://localhost:8080
      Got the exception in command line:

      client-servlet:
      [java] http://localhost:8080/helloworld/services/hello_world_soap12?wsdl
      [java] Exception in thread "main" javax.xml.ws.WebServiceException: org.apa
      che.cxf.service.factory.ServiceConstructionException: Failed to create service.
      [java] at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:101)

      [java] at org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(P
      roviderImpl.java:55)
      [java] at javax.xml.ws.Service.<init>(Service.java:57)
      [java] at org.apache.hello_world_soap12_http.SOAPService.<init>(SOAPSer
      vice.java:36)
      [java] at demo.hw.client.Client.main(Client.java:56)
      [java] Caused by: org.apache.cxf.service.factory.ServiceConstructionExcepti
      on: Failed to create service.
      [java] at org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFa
      ctory.java:68)
      [java] at org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFa
      ctory.java:74)
      [java] at org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.
      java:107)
      [java] at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:99)
      [java] ... 4 more
      [java] Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER
      _ERROR: Problem parsing 'http://localhost:8080/helloworld/services/hello_world_s
      oap12?wsdl'.: java.io.FileNotFoundException: http://localhost:8080/helloworld/se
      rvices/hello_world_soap12?wsdl
      [java] at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(Unknown Source)
      [java] at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
      [java] at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
      [java] at org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLMana
      gerImpl.java:177)
      [java] at org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManag
      erImpl.java:123)
      [java] at org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFa
      ctory.java:66)
      [java] ... 7 more
      [java] Caused by: java.io.FileNotFoundException: http://localhost:8080/hell
      oworld/services/hello_world_soap12?wsdl
      [java] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Ht
      tpURLConnection.java:1172)
      [java] at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setu
      pCurrentEntity(XMLEntityManager.java:973)
      [java] at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.de
      termineDocVersion(XMLVersionDetector.java:184)
      [java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration
      .parse(XML11Configuration.java:798)
      [java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration
      .parse(XML11Configuration.java:764)
      [java] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XM
      LParser.java:148)
      [java] at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DO
      MParser.java:250)
      [java] at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.p
      arse(DocumentBuilderImpl.java:292)
      [java] ... 13 more
      [java] Java Result: 1

      BUILD SUCCESSFUL

      After change the url to http://localhost:8080/helloworld/services/server/hello_world_soap12?wsdl the demo passed

      Attachments

        Activity

          People

            maomaode maomaode
            maomaode maomaode
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: