title: unexpected 's' in response of restful service
body: <p>i am trying to learn restful services and as part of that i am designing a sample request and response page...see i am getting everything right except the following 
  resource called:</p>
  
  <pre><code>&lt;i&gt;
  
  package com.tutorialspoint;
  
  import java.io.BufferedReader;
  import java.io.IOException;
  import java.io.InputStream;
  import java.io.InputStreamReader;
  
  import javax.servlet.http.HttpServletResponse;
  import javax.ws.rs.Consumes;
  import javax.ws.rs.GET;
  import javax.ws.rs.POST;
  import javax.ws.rs.Path;
  import javax.ws.rs.PathParam;
  import javax.ws.rs.Produces;
  import javax.ws.rs.core.Context;
  import javax.ws.rs.core.MediaType;
  import javax.ws.rs.core.Response;
  
  @Path("/RestService")
  public class CrunchifyRESTService {
      @POST
      @Path("/crunchifyService")
      @Consumes(MediaType.APPLICATION_JSON)
      @Produces(MediaType.APPLICATION_JSON)
      public Response crunchifyREST(InputStream incomingData) {
          StringBuilder crunchifyBuilder = new StringBuilder();
          try {
              BufferedReader in = new BufferedReader(new InputStreamReader(incomingData));
              String line = null;
              while ((line = in.readLine()) != null) {
                  crunchifyBuilder.append(line);
              }
          } catch (Exception e) {
              System.out.println("Error Parsing: - ");
          }
          System.out.println("Data Received: " + crunchifyBuilder.toString());
  
          // return HTTP response 200 in case of success
          return Response.status(200).entity(crunchifyBuilder.toString()).build();
      }
  
      @GET
      @Path("/verify")
      @Produces(MediaType.APPLICATION_JSON)
      public Response verifyRESTService(InputStream incomingData) {
          String result = "CrunchifyRESTService Successfully started..";
  
          // return HTTP response 200 in case of success
          return Response.status(200).entity(result).build();
      }
  
      @POST
      @Path("/login")
      @Produces(MediaType.APPLICATION_JSON)
      @Consumes(MediaType.APPLICATION_JSON)
      public Response loginserv(newUser user){
          String data="";
              data=user.uname+" and auth "+user.pwd;
  
  
          return Response.status(200).entity(data).build();
      }
  
  }
  </code></pre>
  
  <p></p>
  
  <p>and the request i am using is  POST and the url is <i><a href="http://localhost:8080/com/rest/RestService/login/sudheer/123" rel="nofollow">http://localhost:8080/com/rest/RestService/login/sudheer/123</a></i></p>
  
  <p>and the response i am getting is </p>
  
  <p><i></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;Apache Tomcat/8.5.4 - Error report&lt;/title&gt;
          &lt;style type="text/css"&gt;H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}.line {height: 1px; background-color: #525D76; border: none;}&lt;/style&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;h1&gt;HTTP Status 415 - Unsupported Media Type&lt;/h1&gt;
          &lt;div class="line"&gt;&lt;/div&gt;
          &lt;p&gt;
              &lt;b&gt;type&lt;/b&gt; Status report
          &lt;/p&gt;
          &lt;p&gt;
              &lt;b&gt;message&lt;/b&gt;
              &lt;u&gt;Unsupported Media Type&lt;/u&gt;
          &lt;/p&gt;
          &lt;p&gt;
              &lt;b&gt;description&lt;/b&gt;
              &lt;u&gt;The server refused this request because the request entity is in a format not supported by the requested resource for the requested method.&lt;/u&gt;
          &lt;/p&gt;
          &lt;hr class="line"&gt;
          &lt;h3&gt;Apache Tomcat/8.5.4&lt;/h3&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p></i></p>
  
  <p><b>Response headers </b></p>
  
  <p><i></p>
  
  <pre><code>Content-Language →en
  Content-Length →1133
  Content-Type →text/html;charset=utf-8
  Date →Mon, 24 Oct 2016 06:35:48 GM
  </code></pre>
  
  <p>T</i></p>
  
  <p>and know what is the exact problem with the code pls clarify me</p>