cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-1526) unable to create my own cxf.xml file DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
Date Mon, 14 Apr 2008 19:19:08 GMT

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

Daniel Kulp commented on CXF-1526:
----------------------------------



Yea, this looks like a xerces 1.x version is somehow being picked up.   Definitely dig into
the classpath and make sure the stuff that is there really is what you want there.


> 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