On Tuesday, June 14, 2011 10:11:11 PM berlindutza wrote:
> Hello!I have succeded to create my web services using Apache cxf
> 2.3.4,Eclipse and Tomcat v7.0.
> Unfortunately I have a problem. As I said I realized some services that
> worked fine at that time. But at some point, at the call of a web service
> the server crashed. The error is printed below. And at this point the
> creation of another web service in the same project is impossible because I
> obtain the error: "The selection must be a WSDL."
> Then I have created another project with another services (which were doing
> the same think) that worked.And of course after some time the server crashed
> again and the services from this project didn't work. An annoying think is
> that I always get the same error after a certain period.
> I would be very happy if you told me what can I do when this think happen.
> What is the cause of this error?

The ReadVariableNodeService1Service object you are creating has a constructor 
that takes a URL to the wsdl.    Can you try making sure you pass in a URL 
that is completely resolvable?  It's likely that the url that is burned into 
the code from the code generator is only usable at code generation time and 
not runtime and you need to pass the runtime specific URL in.

Dan


> Thank you in advanced!
> 
> The error:
> log4j:WARN No appenders could be found for logger
> (org.apache.cxf.bus.spring.BusApplicationContext).
> log4j:WARN Please initialize the log4j system properly.
> Exception in thread "main" javax.xml.ws.WebServiceException:
> org.apache.cxf.service.factory.ServiceConstructionException: Failed to
> create service.
> at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:149)
> at
> org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.jav
> a:90) at javax.xml.ws.Service.<init>(Unknown Source)
> at
> readavalue.ReadVariableNodeService1Service.<init>(ReadVariableNodeService1Se
> rvice.java:50) at
> readavalue.SeiGetval_ReadVariableNodeService1Port_Client.main(SeiGetval_Read
> VariableNodeService1Port_Client.java:49) Caused by:
> org.apache.cxf.service.factory.ServiceConstructionException: Failed to
> create service.
> at
> org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:93)
> at org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:203)
> at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:147)
> ... 4 more
> Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR:
> Problem parsing a link to my web
> service/ReadVariableNodeService1Port?wsdl'.: java.io.FileNotFoundException:
> a link to my we b service/services/ReadVariableNodeService1Port?wsdl
> at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(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:23
> 9) at
> org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:186
> ) at
> org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:91)
> ... 6 more
> Caused by: java.io.FileNotFoundException: a link to my web
> service/Prosys_newSituationS/services/ReadVariableNodeService1Port?wsdl
> at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(
> Unknown Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersi
> on(Unknown Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
> Source)
> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
> Source)
> at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown
> Source)
> at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown
> Source)
> ... 12 more
> 
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Odd-error-with-CXF-Please-help-tp4490161p44
> 90161.html Sent from the cxf-user mailing list archive at Nabble.com.
-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog
Talend - http://www.talend.com

Reply via email to