> WSWS4100E: Method createFault() of class javax.xml.soap.SOAPFactory is
> not supported in SAAJ 1.2.
>

That's the error the concerns me the most.   Looks like WebSphere has an 
old version of SAAJ or something.  JAX-WS requires SAAJ 1.3, not 1.2.   

I hate to ask a silly question, but have you followed all the 
instructions for WebSphere at:
http://cwiki.apache.org/CXF20DOC/appserverguide.html

Dan



On Friday 29 February 2008, Satishstp wrote:
> Thank you, removing the wstx-asl jar worked for me on the service. But
> the client is throwing following exception after getting the response
> back from the service.
>
> Feb 29, 2008 4:29:18 PM org.apache.cxf.phase.PhaseInterceptorChain
> doIntercept
> INFO: Interceptor has thrown exception, unwinding now
> org.apache.cxf.interceptor.Fault: Could not create
> XMLStreamReader(encoding UTF-8).
>       at
> org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInter
>ceptor.java:67) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercepto
>rChain.java:208) at
> org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:429) at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleRe
>sponse(HTTPConduit.java:1955) at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HT
>TPConduit.java:1791) at
> org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66
>) at
> org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:575)
> at
> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndin
>gInterceptor.handleMessage(MessageSenderInterceptor.java:62) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercepto
>rChain.java:208) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276) at
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222) at
> org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) at
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135
>) at $Proxy25.getEmployee(Unknown Source)
>       at com.xyz.auth.client.Client.main(Client.java:32)
> Caused by: javax.xml.stream.XMLStreamException: java.io.IOException:
> stream is closed
>       at
> com.ibm.xml.xlxp.api.stax.msg.StAXMessageProvider.throwXMLStreamExcept
>ion(StAXMessageProvider.java:63) at
> com.ibm.xml.xlxp.api.stax.XMLStreamReaderImpl.setDocumentEntity(XMLStr
>eamReaderImpl.java:313) at
> com.ibm.xml.xlxp.api.stax.XMLStreamReaderImpl.<init>(XMLStreamReaderIm
>pl.java:298) at
> com.ibm.xml.xlxp.api.stax.XMLInputFactoryImpl.createXMLStreamReader(XM
>LInputFactoryImpl.java:1005) at
> com.ibm.xml.xlxp.api.stax.XMLInputFactoryImpl.createXMLStreamReaderInt
>ernal(XMLInputFactoryImpl.java:1115) at
> com.ibm.xml.xlxp.api.stax.XMLInputFactoryImpl.createXMLStreamReader(XM
>LInputFactoryImpl.java:1182) at
> org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInter
>ceptor.java:65) ... 14 more
> Caused by: java.io.IOException: stream is closed
>       at
> sun.net.www.http.ChunkedInputStream.ensureOpen(ChunkedInputStream.java
>:182) at
> sun.net.www.http.ChunkedInputStream.read(ChunkedInputStream.java:661)
> at java.io.FilterInputStream.read(FilterInputStream.java:134) at
> sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpU
>RLConnection.java:2186) at
> sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpU
>RLConnection.java:2181) at
> sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpU
>RLConnection.java:2170) at
> com.ibm.xml.xlxp.api.util.encoding.UTF8EncodingSupport.checkUTF8BOM(UT
>F8EncodingSupport.java:118) at
> com.ibm.xml.xlxp.api.util.encoding.UTF8EncodingSupport.load(UTF8Encodi
>ngSupport.java:77) at
> com.ibm.xml.xlxp.api.util.encoding.ByteStreamDataSource.load(ByteStrea
>mDataSource.java:72) at
> com.ibm.xml.xlxp.api.util.encoding.UTF8EncodingSupport.loadFromByteStr
>eam(UTF8EncodingSupport.java:61) at
> com.ibm.xml.xlxp.api.util.SimpleParsedEntityFactory.loadFromByteStream
>(SimpleParsedEntityFactory.java:325) at
> com.ibm.xml.xlxp.api.util.SimpleParsedEntityFactory.setByteStreamSourc
>e(SimpleParsedEntityFactory.java:146) at
> com.ibm.xml.xlxp.api.sax.impl.SAX2ParsedEntityFactory.readFromInputSou
>rce(SAX2ParsedEntityFactory.java:150) at
> com.ibm.xml.xlxp.api.sax.impl.SAX2ParsedEntityFactory.createParsedEnti
>ty(SAX2ParsedEntityFactory.java:75) at
> com.ibm.xml.xlxp.api.stax.XMLStreamReaderImpl.setDocumentEntity(XMLStr
>eamReaderImpl.java:311) ... 19 more
> WSWS4100E: Method createFault() of class javax.xml.soap.SOAPFactory is
> not supported in SAAJ 1.2.
>
> dkulp wrote:
> > Interesting.  I did a bunch of searches for:
> > javax.xml.stream.isInterning
> > and am not finding much.  It seems to be some proprietary property
> > IBM through in for websphere.
> >
> > That looks like to me is that it's somehow getting some sort of
> > custom implementation of JAXB that IBM has created (instead of our
> > 2.0.5 from Sun) that expects to be working with their Stax parser
> > instead of woodstox, which it is finding.   I'm not really sure how
> > all that happens...
> >
> > I guess I would suggest one of two things:
> > 1) Somehow figure out how to get the classloaders set to use the Sun
> > JAXB implementaion.
> >
> > or
> >
> > 2) Remove the wstx-asl jar we ship and rely on the Stax parser that
> > IBM provides.
> >
> > Dan
> >
> > On Thursday 28 February 2008, Satishstp wrote:
> >> I need some help with Websphere 6.1.x and CXF2.0.4. I wrote a
> >> simple service and client using CXF and getting below exception
> >> when a Client code invokes the service.
> >>
> >> Can anyone help me out?
> >>
> >> [2/28/08 17:22:26:334 EST] 00000023 PhaseIntercep I
> >> org.apache.cxf.phase.PhaseInterceptorChain doIntercept Interceptor
> >> has thrown exception, unwinding now
> >>                                  org.apache.cxf.interceptor.Fault:
> >> Unmarshalling Error: Unrecognized property
> >> 'javax.xml.stream.isInterning' at
> >> org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecode
> >>r.j ava:595) at
> >> org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecode
> >>r.j ava:498) at
> >> org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:40)
> >> at
> >> org.apache.cxf.interceptor.DocLiteralInInterceptor.getPara(DocLiter
> >>alI nInterceptor.java:228) at
> >> org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(Do
> >>cLi teralInInterceptor.java:119) at
> >> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterce
> >>pto rChain.java:208) at
> >> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainIni
> >>tia tionObserver.java:77) at
> >> org.apache.cxf.transport.servlet.ServletDestination.doMessage(Servl
> >>etD estination.java:79) at
> >> org.apache.cxf.transport.servlet.ServletController.invokeDestinatio
> >>n(S ervletController.java:264) at
> >> org.apache.cxf.transport.servlet.ServletController.invoke(ServletCo
> >>ntr oller.java:160) at
> >> org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(Abstract
> >>CXF Servlet.java:170) at
> >> org.apache.cxf.transport.servlet.AbstractCXFServlet.doPost(Abstract
> >>CXF Servlet.java:148) at
> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at
> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at
> >> com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapp
> >>er. java:989) at
> >> com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(Servle
> >>tWr apper.java:501) at
> >> com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(Serv
> >>let Wrapper.java:464) at
> >> com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:325
> >>2) at
> >> com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java
> >>:26 4) at
> >> com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.jav
> >>a:8 11) at
> >> com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.j
> >>ava
> >>
> >>:1439) at
> >>
> >> com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.j
> >>ava
> >>
> >>:112) at
> >>
> >> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimi
> >>nat ion(HttpInboundLink.java:454) at
> >> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInfor
> >>mat ion(HttpInboundLink.java:383) at
> >> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInbo
> >>und Link.java:263) at
> >> com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendTo
> >>Dis criminators(NewConnectionInitialReadCallback.java:214) at
> >> com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.comple
> >>te( NewConnectionInitialReadCallback.java:113) at
> >> com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureComplet
> >>ed( AioReadCompletionListener.java:165) at
> >> com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFu
> >>tur e.java:217) at
> >> com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChan
> >>nel Future.java:161) at
> >> com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136) at
> >> com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195) at
> >> com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler
> >>.ja va:743) at
> >> com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873) at
> >> com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469) Caused
> >> by: java.lang.IllegalArgumentException: Unrecognized property
> >> 'javax.xml.stream.isInterning'
> >>       at
> >> com.ctc.wstx.api.CommonConfig.getProperty(CommonConfig.java:81) at
> >> com.ctc.wstx.sr.BasicStreamReader.getProperty(BasicStreamReader.jav
> >>a:5 78) at
> >> com.ctc.wstx.sr.ValidatingStreamReader.getProperty(ValidatingStream
> >>Rea der.java:177) at
> >> org.apache.cxf.staxutils.DepthXMLStreamReader.getProperty(DepthXMLS
> >>tre amReader.java:151) at
> >> com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.create
> >>(St AXStreamConnector.java:67) at
> >> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal
> >>0(U nmarshallerImpl.java:329) at
> >> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal
> >>(Un marshallerImpl.java:311) at
> >> org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecode
> >>r.j ava:578) ... 34 more
> >
> > --
> > J. Daniel Kulp
> > Principal Engineer, IONA
> > [EMAIL PROTECTED]
> > http://www.dankulp.com/blog



-- 
J. Daniel Kulp
Principal Engineer, IONA
[EMAIL PROTECTED]
http://www.dankulp.com/blog

Reply via email to