title: Request send from Android Mobile is get no any response on server
body: <p>I am new in android world and server side programming for mobile Application. I am getting a problem:- when from any android mobile send me a request in form of url , then my server (Apache tomcat) did not find any response about that request.</p>
  
  <p>I am writing following code in client side(Android Mobile):-</p>
  
  <pre><code>public static void requestForDepartment()
  {
      ArrayList&lt;NameValuePair&gt; nameValuePairs = new ArrayList&lt;NameValuePair&gt;();
      String iName = null;
      String iprice = null;
      String idPrice = null;
      nameValuePairs.add(new BasicNameValuePair("storeId","s0001"));
  
      try {
          System.out.println("inside server try 1");
          // start - line is for sever connection/communication
          HttpClient httpclient = new DefaultHttpClient();
          HttpPost httppost = new
            HttpPost("http://192.168.1.3:8080/xybuy/rest/webservices/requestDepatment");
          httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
          HttpResponse response = httpclient.execute(httppost);
          HttpEntity entity = response.getEntity();
          // end - line is for sever connection/communication
          InputStream is = entity.getContent();
      } catch (Exception e) {
          Log.e("log_tag", "Error in http connection "
                  + e.toString());
      }
  }
  </code></pre>
  
  <p>192.168.1.3:8080 is my endpoint. This is my web.xml file at server side</p>
  
  <pre><code>        &lt;?xml version="1.0" encoding="UTF-8"?&gt;
          &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"            xmlns="http://java.sun.com/xml/ns/javaee"    xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee    http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"    version="2.5"&gt;
    &lt;display-name&gt;FirstProject&lt;/display-name&gt;
    &lt;welcome-file-list&gt;
    &lt;welcome-file&gt;index.html&lt;/welcome-file&gt;
    &lt;welcome-file&gt;index.htm&lt;/welcome-file&gt;
    &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
    &lt;welcome-file&gt;index2.jsp&lt;/welcome-file&gt;
    &lt;/welcome-file-list&gt;
   &lt;servlet&gt;
   &lt;servlet-name&gt;ServletAdaptor&lt;/servlet-name&gt;
   &lt;servlet-class&gt;
          com.sun.jersey.server.impl.container.servlet.ServletAdaptor&lt;/servlet-  class&gt;
  &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  &lt;servlet-mapping&gt;
  &lt;servlet-name&gt;ServletAdaptor&lt;/servlet-name&gt;
  &lt;url-pattern&gt;/REST/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p></p>
  
  <p>The actual payload can be JSON or XML. And server is restful webservices.</p>