Using JAX-RS (RESTEasy) with CDI (Weld) in Tomcat 7
问题 In a JSF 2.0 application (running on Tomcat 7 and using weld 1.1.1.Final), I want to propose my user to download some binary files (.doc, .pdf etc). In order to fulfil that need, I want to use a JAX-RS (RESTEasy 2.2.0.Final) resource bean (annotated with @Path ). The problem is that inside that bean, I want to call a service from a field annotated with @Inject annotation. Actually, like a weld user trying a similar thing I've got a NullPointerException : Weld doesn't inject me my service. So