I'm using CXF in Websphere 7.  I'm trying to use the IBM JDK's stax library. 
Everything seems to work fine but when I try to get a WSDL with a schema
that is using MTOM I get the following stack trace.

It appears to work fine when using the Sun JDK.  Any thoughts?  I'm not the
best at Stax but does this look like a CXF bug?

Mike

[8/24/09 10:57:38:641 MDT] 00000035 webapp        E
com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet
Error]-[CXFServlet]: org.apache.cxf.transport.http.WSDLQueryException:
Exception occurred while trying to process
http://10.118.195.93:9080/stack-petstore-ws_v2_2/Services/petPurchase?wsdl=PetPurchaseWebService.wsdl
        at
org.apache.cxf.transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHandler.java:223)
        at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:182)
        at
org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:220)
        at
org.apache.cxf.transport.servlet.AbstractCXFServlet.doGet(AbstractCXFServlet.java:158)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
        at
org.apache.cxf.transport.servlet.AbstractCXFServlet.service(AbstractCXFServlet.java:211)
        at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1530)
        at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1470)
        at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131)
        at
org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113)
        at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
        at
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
        at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
        at
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
        at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
        at
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
        at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
        at
org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83)
        at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
        at
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
        at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
        at
com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
        at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:858)
        at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:824)
        at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:458)
        at
com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
        at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)
        at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:862)
        at
com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
        at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:178)
        at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
        at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
        at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:272)
        at
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
        at
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
        at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
        at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
        at 
com.ibm.io.async.AsyncChannelFuture$1.run(AsyncChannelFuture.java:205)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)
Caused by: javax.xml.stream.XMLStreamException: The namespace URI
"http://www.w3.org/2005/05/xmlmime"; has not been bound to a prefix.
        at
com.ibm.xml.xlxp2.api.stax.msg.StAXMessageProvider.throwXMLStreamException(StAXMessageProvider.java:62)
        at
com.ibm.xml.xlxp2.api.stax.XMLStreamWriterBase.writeAttribute(XMLStreamWriterBase.java:471)
        at
com.ibm.xml.xlxp2.api.stax.XMLOutputFactoryImpl$XMLStreamWriterProxy.writeAttribute(XMLOutputFactoryImpl.java:161)
        at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:637)
        at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:550)
        at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:667)
        at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:653)
        at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:550)
        at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:667)
        at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:653)
        at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:550)
        at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:667)
        at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:653)
        at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:550)
        at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:667)
        at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:653)
        at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:550)
        at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:667)
        at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:653)
        at org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:550)
        at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:667)
        at org.apache.cxf.staxutils.StaxUtils.writeDocument(StaxUtils.java:528)
        at org.apache.cxf.staxutils.StaxUtils.writeDocument(StaxUtils.java:516)
        at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:686)
        at
org.apache.cxf.transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHandler.java:218)
        ... 38 more

-- 
View this message in context: 
http://www.nabble.com/Problem-generating-schema-when-using-MTOM-with-Websphere-7-tp25119908p25119908.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to