title: @path and @queryparam in Jersey
body: <p>Am developing a simple restful webservice and am a newbie to this. Hence I referred the basic tutorials and succesfully executed them.</p>
  
  <p>Below is the sample code I wrote to proceed further</p>
  
  <pre><code>import javax.ws.rs.GET;
  import javax.ws.rs.Path;
  import javax.ws.rs.PathParam;
  import javax.ws.rs.Produces;
  import javax.ws.rs.QueryParam;
  import javax.ws.rs.core.MediaType;
  
  @Path("/text/{sso}")
  
  public class Do {
  
  
        @GET
        @Produces(MediaType.TEXT_PLAIN)
        public String simple(@PathParam("ss") @QueryParam("d") String params) {
          return "Hello Jersey"+params;
        }
  
        @GET
        @Produces(MediaType.TEXT_PLAIN)
        public String advanced(@PathParam("as") @QueryParam("d") String params) {
          return "Hello Jersey-----"+params;
        }
  }
  </code></pre>
  
  <p>What i basically need is to expose two different methods in the same class and access the appropriate one based on the url. </p>
  
  <p>It throws the following error when doing the above way - com.sun.jersey.spi.inject.Errors$ErrorMessagesException
  Can someone please guide me if am on the right track? and if yes please tell me where am i missing out. If not what is the right approach for such scenarios?</p>