camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Giger <gigerst...@gmx.ch>
Subject Re: camel-cxf local transport
Date Tue, 04 Mar 2008 18:04:37 GMT
Hi Willem,

On Tue, 04 Mar 2008 22:20:35 +0800
Willem Jiang <willem.jiang@gmail.com> wrote:

> Hi Marc,
> 
> Did you start a service endpoint which listens to the 
> local://SalaryDeclarationServiceJAXWS?
>

Ahhhhh:-) Thanks Willem. I got it working now!

I didn't specify the local:// in the jaxws endpoint:

<jaxws:endpoint id="sDServiceJAXWS"
implementor="#sDServiceImpl"
address="local://SDServiceJAXWS"/>

Thanks a lot

Cheers, 

Marc


> Can you show me your cxf endpoints' configuration file?
> 
> Regards,
> 
> Willem
> 
> Marc Giger wrote:
> > Hi,
> >
> > I'm trying to get the local transport working. 
> >
> > Finally I found out how to configure the local-transport. Now I get
> > the following trace on invoke:
> >
> >
> > 04.03.2008 12:54:18
> > org.apache.cxf.transport.local.LocalTransportFactory
> > createDestination INFO: Creating destination for address
> > local://SalaryDeclarationServiceJAXWS 04.03.2008 12:54:18
> > org.apache.cxf.phase.PhaseInterceptorChain doIntercept INFO:
> > Interceptor has thrown exception, unwinding now
> > java.lang.IllegalStateException: Local destination does not have a
> > MessageObserver on address local://SalaryDeclarationServiceJAXWS at
> > org.apache.cxf.transport.local.LocalConduit.dispatchViaPipe(LocalConduit.java:126)
> > at
> > org.apache.cxf.transport.local.LocalConduit.prepare(LocalConduit.java:61)
> > at
> > org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:46)
> > at
> > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.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.endpoint.ClientImpl.invoke(ClientImpl.java:180)
> > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:200)
> > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:186)
> > at
> > org.apache.camel.component.cxf.CxfProducer.process(CxfProducer.java:192)
> > at
> > org.apache.camel.component.cxf.CxfProducer.process(CxfProducer.java:168)
> > at
> > org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsynProcessorBridge.process(AsyncProcessorTypeConverter.java:44)
> > at
> > org.apache.camel.processor.SendProcessor.process(SendProcessor.java:73)
> > at
> > org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:143)
> > at
> > org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:87)
> > at
> > org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:40)
> > at
> > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:44)
> > at
> > org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:68)
> > at
> > org.apache.camel.component.cxf.CamelInvoker.invoke(CamelInvoker.java:160)
> > at
> > org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:56)
> > at
> > org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
> > at
> > org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:92)
> > at
> > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:208)
> > at
> > org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:77)
> > at
> > org.apache.cxf.transport.servlet.ServletDestination.doMessage(ServletDestination.java:79)
> > at
> > org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:264)
> > at
> > org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160)
> > at
> > org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:170)
> > at
> > org.apache.cxf.transport.servlet.AbstractCXFServlet.doPost(AbstractCXFServlet.java:148)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
> > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
> > 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.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
> > at
> > org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> > 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:313) at
> > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
> > at
> > org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844)
> > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) 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.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
> > 04.03.2008 12:54:18 org.apache.cxf.phase.PhaseInterceptorChain
> > doIntercept INFO: Interceptor has thrown exception, unwinding now
> > org.apache.cxf.interceptor.Fault: Local destination does not have a
> > MessageObserver on address local://SalaryDeclarationServiceJAXWS at
> > org.apache.camel.component.cxf.CamelInvoker.invoke(CamelInvoker.java:169)
> > at
> > org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:56)
> > at
> > org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
> > at
> > org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:92)
> > at
> > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:208)
> > at
> > org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:77)
> > at
> > org.apache.cxf.transport.servlet.ServletDestination.doMessage(ServletDestination.java:79)
> > at
> > org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:264)
> > at
> > org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160)
> > at
> > org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:170)
> > at
> > org.apache.cxf.transport.servlet.AbstractCXFServlet.doPost(AbstractCXFServlet.java:148)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
> > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
> > 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.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
> > at
> > org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> > 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:313) at
> > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
> > at
> > org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844)
> > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) 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.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
> > Caused by: java.lang.IllegalStateException: Local destination does
> > not have a MessageObserver on address
> > local://SalaryDeclarationServiceJAXWS at
> > org.apache.cxf.transport.local.LocalConduit.dispatchViaPipe(LocalConduit.java:126)
> > at
> > org.apache.cxf.transport.local.LocalConduit.prepare(LocalConduit.java:61)
> > at
> > org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:46)
> > at
> > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.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.endpoint.ClientImpl.invoke(ClientImpl.java:180)
> > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:200)
> > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:186)
> > at
> > org.apache.camel.component.cxf.CxfProducer.process(CxfProducer.java:192)
> > at
> > org.apache.camel.component.cxf.CxfProducer.process(CxfProducer.java:168)
> > at
> > org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsynProcessorBridge.process(AsyncProcessorTypeConverter.java:44)
> > at
> > org.apache.camel.processor.SendProcessor.process(SendProcessor.java:73)
> > at
> > org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:143)
> > at
> > org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:87)
> > at
> > org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:40)
> > at
> > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:44)
> > at
> > org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:68)
> > at
> > org.apache.camel.component.cxf.CamelInvoker.invoke(CamelInvoker.java:160) ...
> > 29 more
> >
> >
> > This happens with the svn-trunk. What am I missing?
> >
> > Cheers,
> >
> > Marc
> >
> >   

Mime
View raw message