title: Request filter not working in Jersey 2 on Embedded Jetty
body: <p>I'm unable to get my request filter triggered. I run jetty 9.1 as an embedded server.</p>
  
  <pre><code>import javax.ws.rs.container.ContainerRequestContext;
  import javax.ws.rs.container.ContainerRequestFilter;
  import javax.ws.rs.ext.Provider;
  
  @Provider
  public class MyFilter implements ContainerRequestFilter {
  
      @Override
      public void filter(ContainerRequestContext arg0) throws IOException {
          System.out.println("HEY HO");
      }
  }
  </code></pre>
  
  <p>I registered this class in the ResourceConfig, also tried to register the package. It's just ignored. Is it a bug, or am I missing something?</p>
  
  <p>This is how I start Jetty:</p>
  
  <pre><code>Weld weld = new Weld();
  WeldContainer container = weld.initialize();
  
  URI baseUri = UriBuilder.fromUri("http://localhost/").port(8080).build();
  ResourceConfig config = ResourceConfig.forApplicationClass(MyApplication.class);
  
  Server server = JettyHttpContainerFactory.createServer(baseUri, config);
  </code></pre>
  
  <p>(MyApplication extends ResourceConfig and calls <code>this.package(...)</code> and <code>this.register(MyFilter.class)</code> in the constructor.</p>