title: Grizzly Server with static content and REST resource
body: <p>I have a Jersey REST 2.5.1 service which is served through a Grizzly server. Everything works fine so far. I want to add some static content, which is also served through Grizzly and provided from my JAR file. Therefore I use <a href="http://grizzly-nio.net/2013/08/grizzly-2-3-3-serving-static-http-resources-from-jar-files/" rel="noreferrer"><code>CLStaticHttpHandler</code></a>. When I access static resources, such as my <code>index.html</code> explicitly (e.g. <code>http://localhost:8080/index.html</code>), everything works fine. However, when I try to access the root <code>http://localhost:8080</code>, I get a 404. The code looks like this:</p>
  
  <pre><code>ObjectMapper mapper = new ObjectMapper();
  // some configuration stuff here
  
  JacksonJaxbJsonProvider provider = new JacksonJaxbJsonProvider();
  provider.setMapper(mapper);
  
  ResourceConfig resourceConfig = new ResourceConfig()
              .packages("my.restapi.package")
              .register(provider);
  
  HttpServer httpServer = GrizzlyHttpServerFactory.createHttpServer(URI.create(BASE_URI), resourceConfig);
  HttpHandler httpHandler = new CLStaticHttpHandler(HttpServer.class.getClassLoader(), "/static/");
  httpServer.getServerConfiguration().addHttpHandler(httpHandler, "/");
  </code></pre>
  
  <p>As far as I can tell from debugging, <code>org.glassfish.grizzly.http.server.CLStaticHttpHandler.handle(String, Request, Response)</code> never gets called. Any hints, how I can make the <code>index.html</code> accessible as default page?</p>