title: Resolving Template Variable in Resource Interface for Jersey Proxy Client
body: <p>I have an issue resolving a class-level @Path annotation on a interface as such. I'm passing this interface to a WebResourceFactory in Jersey proxy client but it's immediately failing with an IllegalStateException.</p>
  
  <p>The interface definition:</p>
  
  <pre><code>@Path("{entity}")
  public interface EntityResource {
      @GET
      @Produces("*/xml")
      Entity get(@PathParam("view") EntityType view);
  }
  </code></pre>
  
  <p>The exception I get:</p>
  
  <pre><code>Exception in thread "main" java.lang.IllegalStateException: The template variable 'entity' has no value
      at org.glassfish.jersey.client.JerseyWebTarget.getUri(JerseyWebTarget.java:135)
      at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:215)
      at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:60)
      at org.glassfish.jersey.client.proxy.WebResourceFactory.invoke(WebResourceFactory.java:322)
  </code></pre>
  
  <p>Any suggestions on how to resolve the "entity" template variable?</p>