cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ravi Kant Kaithwas (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CXF-1526) unable to create my own cxf.xml file DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
Date Thu, 17 Apr 2008 10:21:22 GMT

     [ https://issues.apache.org/jira/browse/CXF-1526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ravi Kant Kaithwas updated CXF-1526:
------------------------------------


now facing new Issue. 
I am using keytool to import certificate.  the below command import certificate to trustManager.jks
but http:conduit is checking %JAVA_HOME%/jre/lib/security/cacerts key store for validating
the certificate.
keytool -import -alias tomcat -trustcacerts -file certificate.cer -keypass changeit -keystore
trustManager.jks -storepass changeit

I guess cxf is not reading the following tag in http:conduit tag. 
<sec:trustManagers>
 <sec:keyStore type="JKS" password="changeit" file="C:\workspace\tradeQueryService_cxf2.0.5\src\main\resources\trustManager.jks"
/>
</sec:trustManagers>

Can cxf validate certificate without using %JAVA_HOME%/jre/lib/security/cacerts file?

> 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.


Mime
View raw message