You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Jacek Laskowski <ja...@laskowski.net.pl> on 2007/10/09 13:50:13 UTC
Simple Web Service with JAX-WS fails with SOAPFaultException: Could not send Message
Hi,
I wonder whether the sample application at Simple Web Service with
JAX-WS [1] should work. It doesn't work as of now and can't figure out
why. Any pointers appreciated.
The exception thrown below. I use Geronimo from trunk.
javax.xml.ws.soap.SOAPFaultException: Could not send Message.
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:175)
at $Proxy30.add(Unknown Source)
at org.apache.jsp.add_jsp._jspService(add_jsp.java:107)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.apache.geronimo.jetty6.InternalJettyServletHolder.handle(InternalJettyServletHolder.java:65)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle(ThreadClassloaderHandler.java:46)
at org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle(InstanceContextHandler.java:58)
at org.apache.geronimo.jetty6.handler.UserTransactionHandler.handle(UserTransactionHandler.java:48)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle(ComponentContextHandler.java:47)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:201)
at org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:331)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.cxf.interceptor.Fault: Could not send Message.
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
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)
... 34 more
Caused by: java.io.IOException: Not Found
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1885)
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)
... 39 more
Jacek
[1] http://cwiki.apache.org/GMOxDOC20/simple-web-service-with-jax-ws.html
--
Jacek Laskowski
http://www.JacekLaskowski.pl
Re: Simple Web Service with JAX-WS fails with SOAPFaultException: Could not send Message
Posted by Jarek Gawor <jg...@gmail.com>.
On 10/9/07, Jacek Laskowski <ja...@laskowski.net.pl> wrote:
>
> The sample itself is fine, but the documentation is a bit "harsh".
> Can't say what exactly, but saw a couple of places to improve the
> overall reading.
Ok. Sounds good.
Jarek
Re: Simple Web Service with JAX-WS fails with SOAPFaultException: Could not send Message
Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On 10/9/07, Jarek Gawor <jg...@gmail.com> wrote:
> Sorry, already did. The sample is in working state now (at least it
> works fine for me).
No problem if it works fine. It means that I'd changed something and
complained it didn't work. Sweet ;-)
> What are you planning to change/do with the sample?
The sample itself is fine, but the documentation is a bit "harsh".
Can't say what exactly, but saw a couple of places to improve the
overall reading.
Jacek
--
Jacek Laskowski
http://www.JacekLaskowski.pl
Re: Simple Web Service with JAX-WS fails with SOAPFaultException: Could not send Message
Posted by Jarek Gawor <jg...@gmail.com>.
On 10/9/07, Jacek Laskowski <ja...@laskowski.net.pl> wrote:
>
> Please don't remove it - I'll update the doc when the example starts
> working again ;-) Actually, I was about to change it completely, but
> had not much time to work on it today.
Sorry, already did. The sample is in working state now (at least it
works fine for me).
What are you planning to change/do with the sample?
Jarek
Re: Simple Web Service with JAX-WS fails with SOAPFaultException: Could not send Message
Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On 10/9/07, Jarek Gawor <jg...@gmail.com> wrote:
> Was this before or after you added <context-root> element in
> geronimo-web.xml? :)
I'm sure it wasn't, but am not certain now ;-)
> The sample works without and breaks with that new context-root. If you
> change the context-root of the web application you also have to update
> the <service-ref> element.
Oh, I should've known that. Sorry for the noise if the change was the culprit.
> I'm going to remove the <context-root> element you added because it
> will make the wiki page out of date (the very last part). Unless, of
> course you want to update it (urls and the screen shot).
Please don't remove it - I'll update the doc when the example starts
working again ;-) Actually, I was about to change it completely, but
had not much time to work on it today.
Jacek
--
Jacek Laskowski
http://www.JacekLaskowski.pl
Re: Simple Web Service with JAX-WS fails with SOAPFaultException: Could not send Message
Posted by Jarek Gawor <jg...@gmail.com>.
Was this before or after you added <context-root> element in
geronimo-web.xml? :)
The sample works without and breaks with that new context-root. If you
change the context-root of the web application you also have to update
the <service-ref> element.
I'm going to remove the <context-root> element you added because it
will make the wiki page out of date (the very last part). Unless, of
course you want to update it (urls and the screen shot).
Jarek
On 10/9/07, Jacek Laskowski <ja...@laskowski.net.pl> wrote:
> Hi,
>
> I wonder whether the sample application at Simple Web Service with
> JAX-WS [1] should work. It doesn't work as of now and can't figure out
> why. Any pointers appreciated.
>
> The exception thrown below. I use Geronimo from trunk.
>
> javax.xml.ws.soap.SOAPFaultException: Could not send Message.
> at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:175)
> at $Proxy30.add(Unknown Source)
> at org.apache.jsp.add_jsp._jspService(add_jsp.java:107)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
> at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
> at org.apache.geronimo.jetty6.InternalJettyServletHolder.handle(InternalJettyServletHolder.java:65)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> at org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle(ThreadClassloaderHandler.java:46)
> at org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle(InstanceContextHandler.java:58)
> at org.apache.geronimo.jetty6.handler.UserTransactionHandler.handle(UserTransactionHandler.java:48)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> at org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle(ComponentContextHandler.java:47)
> at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
> at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> at org.mortbay.jetty.Server.handle(Server.java:324)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
> at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
> at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
> at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:201)
> at org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:331)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.cxf.interceptor.Fault: Could not send Message.
> at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
> 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)
> ... 34 more
> Caused by: java.io.IOException: Not Found
> at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1885)
> 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)
> ... 39 more
>
> Jacek
>
> [1] http://cwiki.apache.org/GMOxDOC20/simple-web-service-with-jax-ws.html
>
> --
> Jacek Laskowski
> http://www.JacekLaskowski.pl
>