File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes CXF Web Service WSDL File Not Found Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "CXF Web Service WSDL File Not Found Exception" Watch "CXF Web Service WSDL File Not Found Exception" New topic
Author

CXF Web Service WSDL File Not Found Exception

peter wong ka chon
Ranch Hand

Joined: Jul 28, 2011
Posts: 39
I had tried to develop a web service using eclipse indigo but there is error after generating wsdl file (java2ws) it display error on Test Service Explorere wizard which result previous generate wsdl file been erase. Thus, I'm manually copy the wsdl file to temp folder and copy back to the desire folder but following error is display when invoke from browser.

Error: javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service. org.apache.cxf.jaxws.ServiceImpl.(ServiceImpl.java:149) org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:90) javax.xml.ws.Service.(Service.java:57) javax.xml.ws.Service.create(Service.java:687) com.peter.client.CreditCardServiceClient.createServiceClient(CreditCardServiceClient.java:43) com.peter.controller.CreditCardController.doPost(CreditCardController.java:106) javax.servlet.http.HttpServlet.service(HttpServlet.java:754) javax.servlet.http.HttpServlet.service(HttpServlet.java:847) root cause

org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service. org.apache.cxf.wsdl11.WSDLServiceFactory.(WSDLServiceFactory.java:94) org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:203) org.apache.cxf.jaxws.ServiceImpl.(ServiceImpl.java:147) org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:90) javax.xml.ws.Service.(Service.java:57) javax.xml.ws.Service.create(Service.java:687) com.peter.client.CreditCardServiceClient.createServiceClient(CreditCardServiceClient.java:43) com.peter.controller.CreditCardController.doPost(CreditCardController.java:106) javax.servlet.http.HttpServlet.service(HttpServlet.java:754) javax.servlet.http.HttpServlet.service(HttpServlet.java:847) root cause

javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: Problem parsing 'localhost:8080/CreditCardService/CreditcardService?WSDL'.: java.io.FileNotFoundException: localhost:8080/CreditCardService/CreditcardService?WSDL com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(Unknown Source) com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:239) org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:186) org.apache.cxf.wsdl11.WSDLServiceFactory.(WSDLServiceFactory.java:92) org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:203) org.apache.cxf.jaxws.ServiceImpl.(ServiceImpl.java:147) org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:90) javax.xml.ws.Service.(Service.java:57) javax.xml.ws.Service.create(Service.java:687) com.peter.client.CreditCardServiceClient.createServiceClient(CreditCardServiceClient.java:43) com.peter.controller.CreditCardController.doPost(CreditCardController.java:106) javax.servlet.http.HttpServlet.service(HttpServlet.java:754) javax.servlet.http.HttpServlet.service(HttpServlet.java:847) root cause

java.io.FileNotFoundException: localhost:8080/CreditCardService/CreditcardService?WSDL sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1434) org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:986) org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:143) org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:802) org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:768) org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:108) org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:230) org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:285) com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(Unknown Source) com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:239) org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:186) org.apache.cxf.wsdl11.WSDLServiceFactory.(WSDLServiceFactory.java:92) org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:203) org.apache.cxf.jaxws.ServiceImpl.(ServiceImpl.java:147) org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:90) javax.xml.ws.Service.(Service.java:57) javax.xml.ws.Service.create(Service.java:687) com.peter.client.CreditCardServiceClient.createServiceClient(CreditCardServiceClient.java:43) com.peter.controller.CreditCardController.doPost(CreditCardController.java:106) javax.servlet.http.HttpServlet.service(HttpServlet.java:754) javax.servlet.http.HttpServlet.service(HttpServlet.java:847) note The full stack trace of the root cause is available in the JBoss Web/7.0.13.Final logs.

Is there a way to generate wsdl manually?

I tried typing the java2s but it say the command is not recognize as internal program.

Please help.

Thanks.

http://stackoverflow.com/questions/12072001/cxf-web-service-wsdl-file-not-found-exception
peter wong ka chon
Ranch Hand

Joined: Jul 28, 2011
Posts: 39
Problem solve by remove the generation of RequestWrapper and deployment success.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CXF Web Service WSDL File Not Found Exception