[ 
https://issues.apache.org/jira/browse/CXF-6426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14563200#comment-14563200
 ] 

Shreyas commented on CXF-6426:
------------------------------

my code is like this:

URL wsdlURL = new URL(" <<My Web service>> ");

ServiceClass service = new ServiceClass (wsdlURL, SERVICE_NAME);

-getting exception after executing this line of code.



javax.xml.ws.WebServiceException: 
org.apache.cxf.service.factory.ServiceConstructionException: Failed to create 
service.
        at org.apache.cxf.jaxws.ServiceImpl.initialize(ServiceImpl.java:163)
        at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:129)
        at 
org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:99)
        at javax.xml.ws.Service.<init>(Unknown Source)
        at 
com.siebel.customui.BSNLSpcUdaanSpcProcessSpcWF_Service.<init>(BSNLSpcUdaanSpcProcessSpcWF_Service.java:43)
        at org.ex.Client.main(Client.java:25)
Caused by: org.apache.cxf.service.factory.ServiceConstructionException: Failed 
to create service.
        at 
org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:87)
        at 
org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:218)
        at org.apache.cxf.jaxws.ServiceImpl.initialize(ServiceImpl.java:161)
        ... 5 more
Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: 
Problem parsing 
'http://test.abc.com/eai_enu/start.swe?SWEExtSource=WebService&amp;SWEExtCmd=Execute&amp;UserName=BSNLEAI&amp;Password=BSNLEAI'.:
 java.net.UnknownHostException: test.abc.com
        at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(WSDLReaderImpl.java:2198)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2390)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2422)
        at 
org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:231)
        at 
org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:163)
        at 
org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:85)
        ... 7 more
Caused by: java.net.UnknownHostException: test.abc.com
        at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
        at java.net.PlainSocketImpl.connect(Unknown Source)
        at java.net.SocksSocketImpl.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at sun.net.NetworkClient.doConnect(Unknown Source)
        at sun.net.www.http.HttpClient.openServer(Unknown Source)
        at sun.net.www.http.HttpClient.openServer(Unknown Source)
        at sun.net.www.http.HttpClient.<init>(Unknown Source)
        at sun.net.www.http.HttpClient.New(Unknown Source)
        at sun.net.www.http.HttpClient.New(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown 
Source)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown 
Source)
        at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
        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.determineDocVersion(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)
        at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(WSDLReaderImpl.java:2188)
        ... 12 more


> javax.xml.ws.WebServiceException: 
> org.apache.cxf.service.factory.ServiceConstructionException: Failed to create 
> service.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-6426
>                 URL: https://issues.apache.org/jira/browse/CXF-6426
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime, Services, WS-* Components
>    Affects Versions: 3.0.2
>         Environment: Windows 7 32 bit, IDE (Eclipse Kepler SR 2),
>            Reporter: Shreyas
>            Priority: Critical
>             Fix For: 3.0.2
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to