title: JAX-RS does not work with Spring Boot 1.4.1
body: <p>I am trying to develop a simple JAX-RS based web service using Spring Boot version 1.4.1.RELEASE. However getting this exception - </p>
  
  <pre><code>java.lang.IllegalStateException: No generator was provided and there is no default generator registered
  at org.glassfish.hk2.internal.ServiceLocatorFactoryImpl.internalCreate(ServiceLocatorFactoryImpl.java:308) ~[hk2-api-2.5.0-b05.jar:na]
  at org.glassfish.hk2.internal.ServiceLocatorFactoryImpl.create(ServiceLocatorFactoryImpl.java:268) ~[hk2-api-2.5.0-b05.jar:na]
  at org.glassfish.jersey.internal.inject.Injections._createLocator(Injections.java:138) ~[jersey-common-2.23.2.jar:na]
  at org.glassfish.jersey.internal.inject.Injections.createLocator(Injections.java:123) ~[jersey-common-2.23.2.jar:na]
  at org.glassfish.jersey.server.ApplicationHandler.&lt;init&gt;(ApplicationHandler.java:330) ~[jersey-server-2.23.2.jar:na]
  at org.glassfish.jersey.servlet.WebComponent.&lt;init&gt;(WebComponent.java:392) ~[jersey-container-servlet-core-2.23.2.jar:na]
  at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:177) ~[jersey-container-servlet-core-2.23.2.jar:na]
  at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:369) ~[jersey-container-servlet-core-2.23.2.jar:na]
  </code></pre>
  
  <p>Here are my program details -</p>
  
  <p>Dependencies included in POM.xml -</p>
  
  <pre><code>&lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-jersey&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p>And here is JerseyConfig file - </p>
  
  <pre><code>package com.test.main;
  import org.glassfish.jersey.server.ResourceConfig;
  import org.springframework.stereotype.Component;
  import com.test.resources.TutorialResource;
  
  @Component
  public class JerseyConfig extends ResourceConfig{
      public JerseyConfig() {
          register(TutorialResource.class);
          packages("com.test.resources");
      }
  }
  </code></pre>