title: Initializing Jersey unable to find resources?
body: <p>I've upgraded from Jersey 1.7 to 2.16 and it seems like Jersey is unable to find my resources (see stack below). Any ideas what's going on? I've tried initializing inside custom Application class that extends <em>ResourceConfig</em> but with no luck</p>
  
  <pre><code>
  2015-02-27 10:48:58,276  WARN main [AbstractLifeCycle]- FAILED Resources: java.lang.NullPointerException
  java.lang.NullPointerException
      at org.glassfish.jersey.server.internal.routing.RuntimeModelBuilder.createInflector(RuntimeModelBuilder.java:128)
      at org.glassfish.jersey.server.internal.routing.RuntimeModelBuilder.createMethodRouter(RuntimeModelBuilder.java:115)
      at org.glassfish.jersey.server.internal.routing.RuntimeModelBuilder.createResourceMethodRouters(RuntimeModelBuilder.java:309)
      at org.glassfish.jersey.server.internal.routing.RuntimeModelBuilder.buildModel(RuntimeModelBuilder.java:173)
      at org.glassfish.jersey.server.internal.routing.Routing$Builder.buildStage(Routing.java:196)
      at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:532)
      at org.glassfish.jersey.server.ApplicationHandler.access$500(ApplicationHandler.java:166)
      at org.glassfish.jersey.server.ApplicationHandler$3.run(ApplicationHandler.java:327)
      at org.glassfish.jersey.internal.Errors$2.call(Errors.java:289)
      at org.glassfish.jersey.internal.Errors$2.call(Errors.java:286)
      at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
      at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
      at org.glassfish.jersey.internal.Errors.processWithException(Errors.java:286)
      at org.glassfish.jersey.server.ApplicationHandler.(ApplicationHandler.java:324)
      at org.glassfish.jersey.servlet.WebComponent.(WebComponent.java:336)
      at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:170)
      at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:388)
      at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:107)
      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
      at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:716)
      at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:254)
      at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1238)
      at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:683)
      at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:480)
      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
      at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
      at org.eclipse.jetty.server.Server.doStart(Server.java:275)
      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
      at test.infrastructure.ApplicationHttpServer.start(ApplicationHttpServer.java:50)
      at test.infrastructure.ApplicationHttpServer.start(ApplicationHttpServer.java:33)
      at test.infrastructure.RunJetty.start(RunJetty.java:18)
      at test.infrastructure.RunJetty.main(RunJetty.java:10)
  </code></pre>
  
  <p>My web.xml</p>
  
  <pre><code>&lt;filter&gt;
          &lt;filter-name&gt;Resources&lt;/filter-name&gt;
          &lt;filter-class&gt;org.glassfish.jersey.servlet.ServletContainer&lt;/filter-class&gt;
          &lt;init-param&gt;
              &lt;param-name&gt;org.glassfish.jersey.config.server.provider.packages&lt;/param-name&gt;
              &lt;param-value&gt;app.web.rest&lt;/param-value&gt;
          &lt;/init-param&gt;
  &lt;/filter&gt;
  </code></pre>