title: JAX-RS test web service showing a blank web page after adding a new @PATH annotation to a new method
body: <p>I am implementing a restful service in java using JAX-RS, and when testing the service it works only for one of my methods, when I add a new method with a different @PATH annotation the test web page is just blank without errors</p>
  
  <p>My resource class</p>
  
  <p>@Path("beer")
  public class BeerResources {</p>
  
  <pre><code>@Context
  private UriInfo context;
  
  /**
   * Creates a new instance of BeerResources
   */
  public BeerResources() {
  }
  
  @GET
  @Path("/costliest")
  @Produces(MediaType.TEXT_PLAIN)
  public String getCostliest() {
      //TODO return proper representation object
      return new BusinessLayer().getCostliest();
  }
  
  @GET
  @Path("/cheapest")
  @Produces(MediaType.APPLICATION_XML)
  public String getCheapest() {
      //TODO return proper representation object
      return new BusinessLayer().getCheapest();
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Application config class</p>
  
  <p>@javax.ws.rs.ApplicationPath("/webresources")
  public class ApplicationConfig extends Application {</p>
  
  <pre><code>@Override
  public Set&lt;Class&lt;?&gt;&gt; getClasses() {
      Set&lt;Class&lt;?&gt;&gt; resources = new java.util.HashSet&lt;&gt;();
      addRestResourceClasses(resources);
      return resources;
  }
  
  /**
   * Do not modify addRestResourceClasses() method.
   * It is automatically populated with
   * all resources defined in the project.
   * If required, comment out calling this method in getClasses().
   */
  private void addRestResourceClasses(Set&lt;Class&lt;?&gt;&gt; resources) {
      resources.add(beerrestful.BeerResources.class);
  }
  </code></pre>
  
  <p>}</p>