title: Using Jersey with Grizzly
body: <p>I want to create a simple REST service, and for that I am using Jersey and Grizzly.</p>
  
  <p>Here is my Service class:</p>
  
  <pre><code>@Path("/service")
  class TestRESTService {
  
      @GET
      @Path("test")
      @Produces(Array(MediaType.APPLICATION_JSON))
      public String test() {
          return "{ \"TestField\" : \"TestValue\" }";
      }
  
  }
  </code></pre>
  
  <p>And from what I understand here is how I supposed to start it:</p>
  
  <pre><code>ResourceConfig config = new ResourceConfig();
  config.registerClasses(TestRESTService.class);
  URI serverUri = UriBuilder.fromUri("http://localhost/").port(19748).build();
  HttpServer server = GrizzlyHttpServerFactory.createHttpServer(serverUri, config);
  server.start();
  </code></pre>
  
  <p>But it's not working. :(
  I tried to send a request to</p>
  
  <pre><code>http://localhost:19748/service/test
  </code></pre>
  
  <p>using Google Chrome's Postman plugin by adding 'Accept' : 'application/json' as a Http Header, but nothing is returned. The 'hourglass' is just spinning around.</p>
  
  <p>Could you please help me?</p>