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?