Hi,

Not sure what the problem is, looks like the JAX-WS injection mechanism may 
need some hints.
Can you please try to inject WebServiceContext as a bean property instead through a setter method, with @Resource annotation movbed to the method and removed from a field and see if it helps,

Cheers, Sergey

Hi!
I have a soap web service in my webapp.
While using injection in that web service implementation class to get the 
current context like this :

@Resource
private WebServiceContext context;

it works fine. :-)

Now, I want the same service to be accessible via REST too. So I add some REST annotations in my code and I add in my spring config file beans.xml :
the declaration as follow :
<jaxrs:server id="restfulAminService" address="/rest/Admin">
       <jaxrs:serviceBeans>
         <ref bean="RestAminService" />
       </jaxrs:serviceBeans>
   </jaxrs:server>
   <bean id="RestAminService" class="my.package.AdminServiceImpl" />
  and while starting the server I get this error :
15 oct. 2008 16:22:35 org.apache.cxf.common.injection.ResourceInjector 
visitField
INFO: failed to resolve resource my.package.AdminServiceImpl/context

Why?


Reply via email to