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 Mon, 14 Apr 2008 12:03:05 GMT

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

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


here is my custom cxf.xml file >>> 

<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:sec="http://cxf.apache.org/configuration/security" xmlns:http="http://cxf.apache.org/transports/http/configuration"
	xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
	xsi:schemaLocation="
  		   http://cxf.apache.org/configuration/security 
  		      C:/temp/CXF/cxf-2.0.5-incubator/schemas/configuration/security.xsd
           http://cxf.apache.org/transports/http/configuration 
              C:/temp/CXF/cxf-2.0.5-incubator/schemas/configuration/http-conf.xsd
           http://www.springframework.org/schema/beans
              http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">


	<http:conduit name="{http://gbm.ravi.com/campari/TradeQueryService}TradeQueryService.http-conduit">
		<http:tlsClientParameters secureSocketProtocol="TLS">
			<sec:keyManagers keyPassword="changeit">
				<sec:keyStore type="JKS" password="changeit"
					file="C:\workspace\tradeQueryService_cxf 2.0.5\src\main\resources\tradeQueryStore.jks"
/>
			</sec:keyManagers>
			<sec:trustManagers>
				<sec:keyStore type="JKS" password="changeit"
					file="C:\workspace\tradeQueryService_cxf 2.0.5\src\main\resources\trustManager.jks" />
			</sec:trustManagers>
			<sec:cipherSuitesFilter>
				<!-- these filters ensure that a ciphersuite with
					export-suitable or null encryption is used,
					but exclude anonymous Diffie-Hellman key change as
					this is vulnerable to man-in-the-middle attacks -->
				<sec:include>.*_EXPORT_.*</sec:include>
				<sec:include>.*_EXPORT1024_.*</sec:include>
				<sec:include>.*_WITH_DES_.*</sec:include>
				<sec:include>.*_WITH_NULL_.*</sec:include>
				<sec:exclude>.*_DH_anon_.*</sec:exclude>
			</sec:cipherSuitesFilter>
		</http:tlsClientParameters>
		<http:authorization>
			<sec:UserName>tomcat</sec:UserName>
			<sec:Password>changeit</sec:Password>
		</http:authorization>
		<http:client AutoRedirect="true" Connection="Keep-Alive" />
	</http:conduit>

</beans>


> 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