title: org.glassfish.hk2.api.UnsatisfiedDependencyException: There was no object available for injection at Injectee
body: <p>I am new to Jersey 2. So far I worked with Jersey 1.x and Spring and would like to use HK2 implementation.</p>
  
  <p>After reading the <a href="https://hk2.java.net/hk2-api/" rel="noreferrer">tutorial</a> I wrote the following:</p>
  
  <pre><code>@ManagedBean
  @Path("products")
  @Produces({ MediaType.APPLICATION_JSON })
  public class ProductResource {
  
      @Inject
      ProductManager productManager;
  
      @GET
      public GenericResponseData&lt;List&lt;Product&gt;&gt; getProducts(@QueryParam("condition") Condition condition, @QueryParam("keywords") String keywords) {
          GenericResponseData&lt;List&lt;Product&gt;&gt; res = new GenericResponseData&lt;List&lt;Product&gt;&gt;();
          res.setObject(productManager.getProducts(condition, keywords));
          return res;
      }
  
  }
  @Contract
  public interface ProductManager {
      public List&lt;Product&gt; getProducts(Condition condition, String keywords);
  }
  
  @Service
  public class MyProductManager implements ProductManager {
      @Override
      public List&lt;Product&gt; getProducts(Condition condition, String keywords) {
              return null;
          }
  }
  </code></pre>
  
  <p>However I get the following exception:</p>
  
  <pre><code>org.glassfish.hk2.api.UnsatisfiedDependencyException: There was no object available for injection at Injectee
  </code></pre>
  
  <p>What is wrong?</p>