You should put the endpoint and client in the same application context.
The LocalTransport is attached to the bus, now your endpoint and client are using different bus.

On 8/23/11 8:28 PM, mymacin wrote:
Hi,

When I try to use Local Transport instead of Http I am getting the below
exception.I have also included the endpoint configuration below.

My configurations:

Endpoint:

<jaxws:endpoint id="GreeterJmsWS"  address="local://GreeterJms"
implementor="#GreeterJMS" />


Client:

<jaxws:client id="greeterJMSImplService" address="local://GreeterJms"
serviceClass="foo.service.GreeterJMS" />


Also included


<bean class="org.apache.cxf.transport.local.LocalTransportFactory"
lazy-init="false">
       <property name="transportIds">
           <list>
               <value>http://cxf.apache.org/transports/local</value>
               <value>http://schemas.xmlsoap.org/soap/http</value>
               <value>http://schemas.xmlsoap.org/wsdl/soap/http</value>
           </list>
       </property>
   </bean>

and included bus extension

     <import resource="classpath:META-INF/cxf/cxf-extension-local.xml" />

Exception :

java.lang.IllegalStateException: Local destination does not have a
MessageObserver on address local://GreeterJms/
         at
org.apache.cxf.transport.local.LocalConduit.dispatchViaPipe(LocalConduit.java:114)
         at
org.apache.cxf.transport.local.LocalConduit.prepare(LocalConduit.java:59)
         at
org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:46)

Thanks in advance.
Mymacin

--
View this message in context: 
http://cxf.547215.n5.nabble.com/Local-Transport-MessageObserver-error-tp4726603p4726603.html
Sent from the cxf-user mailing list archive at Nabble.com.



--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang

Reply via email to