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

Ravi Kant Kaithwas commented on CXF-1526:
-----------------------------------------

Thanks Guys the issue was with older version of Xerces. that is resolved, Now I 
getting the following error with my ssl configuration. 
I am running my webservice on tomcat server and the link goes like this 
https://localhost:8443/...... 
the error I got is >>>>
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:129)
        at 
org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:55)
        at javax.xml.ws.Service.<init>(Service.java:57)
        at 
com.rbs.gbm.campari.service.tradequery.TradeQueryService.<init>(TradeQueryService.java:52)
        at 
com.rbs.gbm.campari.service.tradequery.TradeQueryServicePortType_TradeQueryServicePort_Client.main(TradeQueryServicePortType_TradeQueryServicePort_Client.java:77)
Caused by: org.apache.cxf.service.factory.ServiceConstructionException: Failed 
to create service.
        at 
org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:83)
        at 
org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:135)
        at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:127)
        ... 4 more
Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: 
Problem parsing 
'https://localhost:8443/tradeQueryService-1.0-SNAPSHOT/tradequery?wsdl'.: 
java.io.IOException: HTTPS hostname wrong:  should be <localhost>
        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:204)
        at 
org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:168)
        at 
org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:81)
        ... 6 more
Caused by: java.io.IOException: HTTPS hostname wrong:  should be <localhost>
        at 
sun.net.www.protocol.https.HttpsClient.checkURLSpoofing(HttpsClient.java:490)
        at 
sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:415)
        at 
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:170)
        at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:916)
        at 
sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234)
        at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown 
Source)
        at 
org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
        ... 12 more
<<<<<



> unable to create my own cxf.xml file 
> DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V 
> ---------------------------------------------------------------------------------------------
>
>                 Key: CXF-1526
>                 URL: https://issues.apache.org/jira/browse/CXF-1526
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 2.0.5
>         Environment: windows xp, java 1.5 
>            Reporter: Ravi Kant Kaithwas
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Hi,
> I am trying to create ssl client with cxf 2.0.5, for this I am supplying 
> http:conduit element using custom cxf.xml file. but while loading my cxf.xml 
> file. i got the below mensioned error >>>
> "
> 14-Apr-2008 17:18:16 org.apache.cxf.bus.spring.SpringBusFactory createBus
> WARNING: Failed to create application context.
> org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected 
> exception parsing XML document from class path resource [ravi.xml]; nested 
> exception is java.lang.AbstractMethodError: 
> javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
> Caused by: java.lang.AbstractMethodError: 
> javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
>       at 
> org.apache.cxf.bus.spring.TunedDocumentLoader.createDocumentBuilderFactory(TunedDocumentLoader.java:98)
>       at 
> org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:70)
>       at 
> org.apache.cxf.bus.spring.TunedDocumentLoader.loadDocument(TunedDocumentLoader.java:88)
>       at 
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:351)
>       at 
> org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.doLoadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:70)
>       at 
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
>       at 
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280)
>       at 
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131)
>       at 
> org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:108)
>       at 
> org.apache.cxf.bus.spring.BusApplicationContext.loadBeanDefinitions(BusApplicationContext.java:229)
>       at 
> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:101)
>       at 
> org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:389)
>       at 
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:324)
>       at 
> org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext.java:86)
>       at 
> org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:93)
>       at 
> org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:87)
>       at 
> org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:65)
>       at 
> org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:54)
>       at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:69)
>       at org.apache.cxf.BusFactory.getThreadDefaultBus(BusFactory.java:106)
>       at org.apache.cxf.BusFactory.getThreadDefaultBus(BusFactory.java:97)
>       at 
> org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:54)
>       at javax.xml.ws.Service.<init>(Service.java:57)
>       at 
> com.rbs.gbm.campari.service.tradequery.TradeQueryService.<init>(TradeQueryService.java:52)
>       at 
> com.rbs.gbm.campari.service.tradequery.TradeQueryServicePortType_TradeQueryServicePort_Client.main(TradeQueryServicePortType_TradeQueryServicePort_Client.java:65)
> Exception in thread "main" java.lang.RuntimeException: 
> org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected 
> exception parsing XML document from class path resource [ravi.xml]; nested 
> exception is java.lang.AbstractMethodError: 
> javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
>       at 
> org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:96)
>       at 
> org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:87)
>       at 
> org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:65)
>       at 
> org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:54)
>       at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:69)
>       at org.apache.cxf.BusFactory.getThreadDefaultBus(BusFactory.java:106)
>       at org.apache.cxf.BusFactory.getThreadDefaultBus(BusFactory.java:97)
>       at 
> org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:54)
>       at javax.xml.ws.Service.<init>(Service.java:57)
>       at 
> com.rbs.gbm.campari.service.tradequery.TradeQueryService.<init>(TradeQueryService.java:52)
>       at 
> com.rbs.gbm.campari.service.tradequery.TradeQueryServicePortType_TradeQueryServicePort_Client.main(TradeQueryServicePortType_TradeQueryServicePort_Client.java:65)
> Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: 
> Unexpected exception parsing XML document from class path resource 
> [ravi.xml]; nested exception is java.lang.AbstractMethodError: 
> javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
>       at 
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:375)
>       at 
> org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.doLoadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:70)
>       at 
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
>       at 
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280)
>       at 
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131)
>       at 
> org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:108)
>       at 
> org.apache.cxf.bus.spring.BusApplicationContext.loadBeanDefinitions(BusApplicationContext.java:229)
>       at 
> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:101)
>       at 
> org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:389)
>       at 
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:324)
>       at 
> org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext.java:86)
>       at 
> org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:93)
>       ... 10 more
> Caused by: java.lang.AbstractMethodError: 
> javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
>       at 
> org.apache.cxf.bus.spring.TunedDocumentLoader.createDocumentBuilderFactory(TunedDocumentLoader.java:98)
>       at 
> org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:70)
>       at 
> org.apache.cxf.bus.spring.TunedDocumentLoader.loadDocument(TunedDocumentLoader.java:88)
>       at 
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:351)
>       ... 21 more
> "<<<
> 2. at this link >>> 
> http://cwiki.apache.org/CXF20DOC/configuration-for-developers.html , Can 
> someone please add an example of how to add "HTTP Conduit inside CXF".
> Thanks in advance,
> Ravi 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to