You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by shl <vm...@gmail.com> on 2013/08/15 07:15:18 UTC

STSClient error(WSDLException: faultCode=PARSER_ERROR: )

Hello all

Now I'm developing STSClient by Apache CXF 2.7.6. But I encountered
following error.
I checked similar problem in this mailing lit, but can't find good answer.
Could anyone give me some advise for this problem. 

---test env.---
JRE:
java version "1.6.0"
Java(TM) SE Runtime Environment (build
pwa6460_26sr6ifix-20130705(SR6+IV44889+IX90121))
IBM J9 VM (build 2.6, JRE 1.6.0 Windows Server 2008 R2 amd64-64 Compressed
References 20130702_154829 (JIT enabled, AOT enabled)

I also attached folloiwng files.
Source code, WSDL file, XML configuration file, log file, bacth file to set
CLASSPATH and PATH.

---Error Message in log file:---
2013/08/15 14:00:29
org.springframework.context.support.AbstractApplicationContext
prepareRefresh
INFO: Refreshing org.apache.cxf.bus.spring.BusApplicationContext@3768d258:
startup date [Thu Aug 15 14:00:29 JST 2013]; root of context hierarchy
2013/08/15 14:00:29 org.apache.cxf.bus.spring.BusApplicationContext
getConfigResources
INFO: Loaded configuration file file:/C:/work/ws-cxf/wssec-client.xml.
2013/08/15 14:00:29
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource
[META-INF/cxf/cxf.xml]
2013/08/15 14:00:29
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource
[META-INF/cxf/cxf-extension-wstx-msv-validation.xml]
2013/08/15 14:00:29
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from URL
[file:/C:/work/ws-cxf/wssec-client.xml]
2013/08/15 14:00:30
org.springframework.beans.factory.support.DefaultListableBeanFactory
preInstantiateSingletons
INFO: Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@7991a1e2:
defining beans
[cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.wstx_msv_validation.WoodstoxValidationImpl,cxf.config0,{http://schemas.xmlsoap.org/ws/2005/02/trust}SecurityTokenService.jaxws-client.proxyFactory,{http://schemas.xmlsoap.org/ws/2005/02/trust}SecurityTokenService.jaxws-client];
root of factory hierarchy
org.apache.cxf.service.factory.ServiceConstructionException: Failed to
create service.
	at
org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:100)
	at
org.apache.cxf.ws.security.trust.AbstractSTSClient.createClient(AbstractSTSClient.java:557)
	at
org.apache.cxf.ws.security.trust.AbstractSTSClient.issue(AbstractSTSClient.java:635)
	at
org.apache.cxf.ws.security.trust.STSClient.requestSecurityToken(STSClient.java:62)
	at
org.apache.cxf.ws.security.trust.STSClient.requestSecurityToken(STSClient.java:56)
	at
org.apache.cxf.ws.security.trust.STSClient.requestSecurityToken(STSClient.java:52)
	at
org.apache.cxf.ws.security.trust.STSClient.requestSecurityToken(STSClient.java:48)
	at TrustClient.main(TrustClient.java:31)
Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR:
java.lang.RuntimeException: Cannot create a secure XMLInputFactory
	at
org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:254)
	at
org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:203)
	at
org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:98)
	... 7 more
Caused by: java.lang.RuntimeException: Cannot create a secure
XMLInputFactory
	at
org.apache.cxf.staxutils.StaxUtils.createXMLInputFactory(StaxUtils.java:303)
	at
org.apache.cxf.staxutils.StaxUtils.getXMLInputFactory(StaxUtils.java:258)
	at
org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1469)
	at
org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1371)
	at
org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:244)
	... 9 more
ws-cxf.zip <http://cxf.547215.n5.nabble.com/file/n5732466/ws-cxf.zip>  



--
View this message in context: http://cxf.547215.n5.nabble.com/STSClient-error-WSDLException-faultCode-PARSER-ERROR-tp5732466.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: STSClient error(WSDLException: faultCode=PARSER_ERROR: )

Posted by shl <vm...@gmail.com>.
Many thanks for your quick reply. I could fix problem. Your pointed web page
was very useful.



--
View this message in context: http://cxf.547215.n5.nabble.com/STSClient-error-WSDLException-faultCode-PARSER-ERROR-tp5732466p5732502.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: STSClient error(WSDLException: faultCode=PARSER_ERROR: )

Posted by Colm O hEigeartaigh <co...@apache.org>.
See this question + reply:

http://stackoverflow.com/questions/16741518/eclipse-web-service-client-wizard-and-cxf

Colm.


On Thu, Aug 15, 2013 at 6:15 AM, shl <vm...@gmail.com> wrote:

> Hello all
>
> Now I'm developing STSClient by Apache CXF 2.7.6. But I encountered
> following error.
> I checked similar problem in this mailing lit, but can't find good answer.
> Could anyone give me some advise for this problem.
>
> ---test env.---
> JRE:
> java version "1.6.0"
> Java(TM) SE Runtime Environment (build
> pwa6460_26sr6ifix-20130705(SR6+IV44889+IX90121))
> IBM J9 VM (build 2.6, JRE 1.6.0 Windows Server 2008 R2 amd64-64 Compressed
> References 20130702_154829 (JIT enabled, AOT enabled)
>
> I also attached folloiwng files.
> Source code, WSDL file, XML configuration file, log file, bacth file to set
> CLASSPATH and PATH.
>
> ---Error Message in log file:---
> 2013/08/15 14:00:29
> org.springframework.context.support.AbstractApplicationContext
> prepareRefresh
> INFO: Refreshing org.apache.cxf.bus.spring.BusApplicationContext@3768d258:
> startup date [Thu Aug 15 14:00:29 JST 2013]; root of context hierarchy
> 2013/08/15 14:00:29 org.apache.cxf.bus.spring.BusApplicationContext
> getConfigResources
> INFO: Loaded configuration file file:/C:/work/ws-cxf/wssec-client.xml.
> 2013/08/15 14:00:29
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader
> loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource
> [META-INF/cxf/cxf.xml]
> 2013/08/15 14:00:29
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader
> loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource
> [META-INF/cxf/cxf-extension-wstx-msv-validation.xml]
> 2013/08/15 14:00:29
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader
> loadBeanDefinitions
> INFO: Loading XML bean definitions from URL
> [file:/C:/work/ws-cxf/wssec-client.xml]
> 2013/08/15 14:00:30
> org.springframework.beans.factory.support.DefaultListableBeanFactory
> preInstantiateSingletons
> INFO: Pre-instantiating singletons in
>
> org.springframework.beans.factory.support.DefaultListableBeanFactory@7991a1e2
> :
> defining beans
>
> [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.wstx_msv_validation.WoodstoxValidationImpl,cxf.config0,{
> http://schemas.xmlsoap.org/ws/2005/02/trust}SecurityTokenService.jaxws-client.proxyFactory,{http://schemas.xmlsoap.org/ws/2005/02/trust}SecurityTokenService.jaxws-client
> ];
> root of factory hierarchy
> org.apache.cxf.service.factory.ServiceConstructionException: Failed to
> create service.
>         at
>
> org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:100)
>         at
>
> org.apache.cxf.ws.security.trust.AbstractSTSClient.createClient(AbstractSTSClient.java:557)
>         at
>
> org.apache.cxf.ws.security.trust.AbstractSTSClient.issue(AbstractSTSClient.java:635)
>         at
>
> org.apache.cxf.ws.security.trust.STSClient.requestSecurityToken(STSClient.java:62)
>         at
>
> org.apache.cxf.ws.security.trust.STSClient.requestSecurityToken(STSClient.java:56)
>         at
>
> org.apache.cxf.ws.security.trust.STSClient.requestSecurityToken(STSClient.java:52)
>         at
>
> org.apache.cxf.ws.security.trust.STSClient.requestSecurityToken(STSClient.java:48)
>         at TrustClient.main(TrustClient.java:31)
> Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR:
> java.lang.RuntimeException: Cannot create a secure XMLInputFactory
>         at
>
> org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:254)
>         at
>
> org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:203)
>         at
> org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:98)
>         ... 7 more
> Caused by: java.lang.RuntimeException: Cannot create a secure
> XMLInputFactory
>         at
>
> org.apache.cxf.staxutils.StaxUtils.createXMLInputFactory(StaxUtils.java:303)
>         at
> org.apache.cxf.staxutils.StaxUtils.getXMLInputFactory(StaxUtils.java:258)
>         at
>
> org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1469)
>         at
>
> org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1371)
>         at
>
> org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:244)
>         ... 9 more
> ws-cxf.zip <http://cxf.547215.n5.nabble.com/file/n5732466/ws-cxf.zip>
>
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/STSClient-error-WSDLException-faultCode-PARSER-ERROR-tp5732466.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>



-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com