On May 8, 2014, at 10:16 AM, [email protected] wrote:

> I'm trying to associate an endpoint with a named cxf Bus but getting the 
> 'Can't find the request for Observer' error. The service works fine if no bus 
> name is specified in the endpoint.  From the server output it appears the 
> service is found and loaded. I'm currently using cxf 2.5.1.
> 

Any chance of trying with a supported version of CXF?  Preferably 2.7.11.

You could try specifying everything on the <cxf:bus> like:

<cxf:bus  name=“server” id=“server” bus=“server”>

One of them might work.   Again, old version of CXF so not really sure what to 
look at.   Our tests all use <cxf:bus bus=“bus1”> so maybe just flipping to 
that will work.

Dan



> May 08, 2014 8:22:27 AM 
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean 
> buildServiceFromClass
> INFO: Creating Service 
> {http://pingService.example.wmg.provider.service.wellsfargo.com/}PingSoapBindingImplService
>  from class
> com.wellsfargo.service.provider.wmg.example.pingservice.PingPortType
> May 08, 2014 8:22:28 AM org.apache.cxf.endpoint.ServerImpl initDestination
> INFO: Setting the server's publish address to be /ping
> May 08, 2014 8:23:46 AM org.apache.cxf.transport.servlet.ServletController 
> invoke
> WARNING: Can't find the the request for 
> http://localhost:7001/ExampleProject/services/ping's Observer
> 
> Here is the configuration -
> 
> <beans xmlns="http://www.springframework.org/schema/beans";
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>       xmlns:cxf="http://cxf.apache.org/core";
>       xmlns:jaxws="http://cxf.apache.org/jaxws";
>       xsi:schemaLocation="http://cxf.apache.org/core 
> http://cxf.apache.org/schemas/core.xsd
>                           http://www.springframework.org/schema/beans
>                           
> http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
>                           http://cxf.apache.org/jaxws
>                           http://cxf.apache.org/schemas/jaxws.xsd";>
> 
>   <import resource="classpath:META-INF/cxf/cxf.xml" />
> 
>   <bean id="pingWebService" 
> class="com.wellsfargo.service.provider.wmg.example.pingService.PingSoapBindingImpl"/>
> 
>    <cxf:bus name="server">
>    </cxf:bus>
> 
>   <jaxws:endpoint bus="server" id="ping" implementor="#pingWebService" 
> address="/ping" />
> </beans>
> 

-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to