You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by nicolas de loof <ni...@apache.org> on 2008/05/15 12:16:08 UTC

some ResourceInjector errors in my log

Hello,

my web service implementation is configured as a spring bean :
<jaxws:endpoint implementor="#service" .../>

Spring injects my dependencies in fields annotated with @Resource. CXF also
tries, and I get some errors in log :

2008-05-15 11:59:12,752 : ResourceInjector.visitField : failed to resolve
resource
com.capgemini.tpal.webservices.ServicesConsultation.ServicesConsultationSimple/tablerefDAO

Can I disable CXF @Resource support ?

Re: some ResourceInjector errors in my log

Posted by Julio Arias <ju...@rbxglobal.com>.
A work around this is to use @Autowired and @Qualifier Spring  
annotations instead of @Resource


--
Julio Arias
Senior Java Developer
Roundbox Global : enterprise : technology : genius
---------------------------------------------------------------------------------
Avenida 11 y Calle 7-9, Barrio Amón, San Jose, Costa Rica
tel: (011) 506.258.3695 ext. 2001 | cel: (011) 506.849.5981
email: julio.arias@rbxglobal.com | www.rbxglobal.com
---------------------------------------------------------------------------------

On May 15, 2008, at 5:16 AM, nicolas de loof wrote:

> Hello,
>
> my web service implementation is configured as a spring bean :
> <jaxws:endpoint implementor="#service" .../>
>
> Spring injects my dependencies in fields annotated with @Resource.  
> CXF also
> tries, and I get some errors in log :
>
> 2008-05-15 11:59:12,752 : ResourceInjector.visitField : failed to  
> resolve
> resource
> com 
> .capgemini 
> .tpal.webservices.ServicesConsultation.ServicesConsultationSimple/ 
> tablerefDAO
>
> Can I disable CXF @Resource support ?


Re: some ResourceInjector errors in my log

Posted by nicolas de loof <ni...@apache.org>.
2008/5/15 Daniel Kulp <dk...@apache.org>:

>
> On May 15, 2008, at 6:16 AM, nicolas de loof wrote:
>
>   Hello,
>>
>> my web service implementation is configured as a spring bean :
>> <jaxws:endpoint implementor="#service" .../>
>>
>> Spring injects my dependencies in fields annotated with @Resource. CXF
>> also
>> tries, and I get some errors in log :
>>
>> 2008-05-15 11:59:12,752 : ResourceInjector.visitField : failed to resolve
>> resource
>>
>> com.capgemini.tpal.webservices.ServicesConsultation.ServicesConsultationSimple/tablerefDAO
>>
>> Can I disable CXF @Resource support ?
>>
>
> No.   Per JAX-WS spec, we have to process them.  Plus, a LOT of cxf is
> wired together with the @Resource and @PostConstruct annotations.  Without
> those being processed, I think a ton of stuff would break.
>


Right, so how can i configure CXF to use my spring context as source for
@Resource injection ?




>
>
> ---
> Daniel Kulp
> dkulp@apache.org
> http://www.dankulp.com/blog
>
>
>
>
>

Re: some ResourceInjector errors in my log

Posted by Daniel Kulp <dk...@apache.org>.
On May 15, 2008, at 6:16 AM, nicolas de loof wrote:

> Hello,
>
> my web service implementation is configured as a spring bean :
> <jaxws:endpoint implementor="#service" .../>
>
> Spring injects my dependencies in fields annotated with @Resource.  
> CXF also
> tries, and I get some errors in log :
>
> 2008-05-15 11:59:12,752 : ResourceInjector.visitField : failed to  
> resolve
> resource
> com 
> .capgemini 
> .tpal.webservices.ServicesConsultation.ServicesConsultationSimple/ 
> tablerefDAO
>
> Can I disable CXF @Resource support ?

No.   Per JAX-WS spec, we have to process them.  Plus, a LOT of cxf is  
wired together with the @Resource and @PostConstruct annotations.   
Without those being processed, I think a ton of stuff would break.


---
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog