cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem2 <ning.ji...@iona.com>
Subject Re: How to - Write a service with Spring - didn't work in Tomcat
Date Sun, 30 Sep 2007 01:05:10 GMT

You can find some discusses from www.nabble.com cxf forum[1].
[1]
http://www.nabble.com/forum/Search.jtp?query=saaj&local=y&forum=16914&matchingForums=a

Here[2] is a direct answer for you .
[2]http://www.nabble.com/Cxf-spring-client-throws-Cannot-create-SAAJ-factory-instance-tf4055658.html#a11521672

Willem.


Emily Gu wrote:
> 
> Hi,
> 
> I am getting following error when run this in tomcat. Please help!
> 
> 
> NFO: Interceptor has thrown exception, unwinding now
> 
> org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader.
> 
> at
> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage
> (*ReadHeadersInterceptor.java:187*)
> 
> at
> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage
> (*ReadHeadersInterceptor.java:56*)
> 
> at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(*
> PhaseInterceptorChain.java:207*)
> 
> at org.apache.cxf.endpoint.ClientImpl.onMessage(*ClientImpl.java:395*)
> 
> at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse
> (*HTTPConduit.java:1932*)
> 
> at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(*
> HTTPConduit.java:1790*)
> 
> at
> org.apache.cxf.transport.AbstractConduit.close(*AbstractConduit.java:66*)
> 
> at org.apache.cxf.transport.http.HTTPConduit.close(*HTTPConduit.java:576*)
> 
> at
> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage
> (*MessageSenderInterceptor.java:62*)
> 
> at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(*
> PhaseInterceptorChain.java:207*)
> 
> at org.apache.cxf.endpoint.ClientImpl.invoke(*ClientImpl.java:254*)
> 
> at org.apache.cxf.endpoint.ClientImpl.invoke(*ClientImpl.java:205*)
> 
> at org.apache.cxf.frontend.ClientProxy.invokeSync(*ClientProxy.java:73*)
> 
> at
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(*JaxWsClientProxy.java:135*)
> 
> at $Proxy11.sayHi(Unknown Source)
> 
> at demo.spring.client.Client.main(*Client.java:20*)
> 
> Caused by: *com.ctc.wstx.exc.WstxEOFException*: Unexpected EOF in prolog
> 
> at [row,col {unknown-source}]: [1,0]
> 
> at
> com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(*StreamScanner.java:661*
> )
> 
> at
> com.ctc.wstx.sr.BasicStreamReader.handleEOF(*BasicStreamReader.java:2134*
> )
> 
> at
> com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(*BasicStreamReader.java
> :2040*)
> 
> at com.ctc.wstx.sr.BasicStreamReader.next(*BasicStreamReader.java:1069*)
> 
> at
> com.ctc.wstx.sr.BasicStreamReader.nextTag(*BasicStreamReader.java:1095*)
> 
> at
> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage
> (*ReadHeadersInterceptor.java:85*)
> 
> ... 15 more
> 
> Exception in thread "main" *javax.xml.ws.WebServiceException*: Cannot
> create
> SAAJ factory instance.
> 
> at org.apache.cxf.jaxws.binding.soap.SOAPBindingImpl.getSOAPFactory(*
> SOAPBindingImpl.java:118*)
> 
> at
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(*JaxWsClientProxy.java:151*)
> 
> at $Proxy11.sayHi(Unknown Source)
> 
> at demo.spring.client.Client.main(*Client.java:20*)
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to---Write-a-service-with-Spring---didn%27t-work-in-Tomcat-tf4541046.html#a12961770
Sent from the cxf-user mailing list archive at Nabble.com.


Mime
View raw message