WebServiceContext is not injected using @Resource
问题 I know that has been asked before, but none of the solutions worked for me. Probably because they were mostly using EE compliant application servers, which is NOT my case. I'm running my web service on jetty (through Eclipse) for development only. But even for deployment, I'll use Tomcat 7. So for either development or production, I won't be using a JavaEE compliant server. So is it still possible to inject WebServiceContext into my web services ? I've tried the following but it didn't work