CDI/Weld unable to do constructor injection of RESTEasy resource
问题 I'm trying to combine RESTEasy with Weld on AppEngine but having troubles to do constructor injection. I've added the RESTEasy CdiInjectorFactory context param and the Weld servlet listener. My RESTEasy application class looks like: public class MyApplication extends Application { @Override public Set<Class<?>> getClasses() { HashSet<Class<?>> classes = new HashSet<Class<?>>(); classes.add(CustomerResource.class); return classes; } } and the CustomerResource: @Path("/rest/app/customers")