What does your jaxws:endpoint config look like?   If you aren't using a ref to 
a spring defined bean for MiniServiceImpl, then spring wouldn't have created 
it and nothing would have gotten injected.

Dan


On Thu February 12 2009 1:23:54 pm paolocollector wrote:
> Hi all
>
> i am having trouble using Spring 2.5 annotation with cxf
>
> I reduced all tha application to a mini manager and a webservice
>
> the manager code is
>
> @Service
> public class MiniManagerImpl implements MiniManager {
> [...]
>
> and the webservice
>
> @WebService(endpointInterface = "minitest.service.MiniService", serviceName
> = "MiniService")
> public class MiniServiceImpl extends AbstractBaseServiceImpl implements
> MiniService {
>
>         @Autowired
>         private MiniManager miniManager;
> [...]
>
> I did this other times the same way in a web application, and the autowire
> always worked.
> However this time it seems to ignore me, there is no injection and
> miniManager is always null.
> The webservice works, it trace my messages and anithing else, it just can't
> call the manager (that is null).
>
> I checked the config files and the auto scan
>         <context:component-scan base-package="minitest"
> scoped-proxy="targetClass" />
> (package is correct)
>
> Anybody can help me? What am i missing?
> Why Spring should ignore the autowire when the request comes from a cxf
> webservice?
>
> Thanks a lot
> Paolo

-- 
Daniel Kulp
[email protected]
http://www.dankulp.com/blog

Reply via email to