title: REST @Context UriInfo is empty
body: <p>I have the following code snippet which I have to use pass data to server</p>
  
  <pre><code>function myFuntion() { 
      var myurl = 'myurl/';
      var mydata = $("#myform").serializeArray();
      $.ajax({
          url: myurl,
          type: 'POST',
          contentType : "application/json; charset=utf-8",
          dataType: 'json',
              data: mydata,
  
          success: function (data) {
              ...
          }
      });
  }
  </code></pre>
  
  <p>and in server JERSEY code</p>
  
  <pre><code>@POST
  @Path("/persistlogs")
  public Object myMethod(@Context
      UriInfo uriInfo) {
  
  MultivaluedMap params = uriInfo.getPathParameters();
  params.size() // is always null 
  </code></pre>
  
  <p>Issue is uriInfo is always null</p>
  
  <p>What could be the reason for this?</p>