title: Jersey rest api not working on compute engine tomcat 7
body: <p>jersey rest api service is working fine on localhost tomcat7 but when i trying to deploy on tomcat8 on google compute engine it is not working i even tried with tomcat7 also but still 404 resource not found (it working fine on localhost tomcat7) plz help me:(</p>
  
  <p>here is my web.xml</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" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"&gt;
    &lt;display-name&gt;RestTest&lt;/display-name&gt;
    &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;Hello.jsp&lt;/welcome-file&gt;
  
    &lt;/welcome-file-list&gt;
   &lt;servlet&gt;
      &lt;servlet-name&gt;javax.ws.rs.core.Application&lt;/servlet-name&gt;  
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
    &lt;/servlet&gt;
    &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;javax.ws.rs.core.Application&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/rest/*&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
  
    &lt;/web-app&gt;
  </code></pre>
  
  <p>And Here is my Rest Service Test Class</p>
  
  <p>\
  package com.services;</p>
  
  <pre><code>import javax.ws.rs.GET;
  import javax.ws.rs.Path;
  import javax.ws.rs.Produces;
  import javax.ws.rs.core.MediaType;
  import com.obj.Resp;
  
  @Path("/say")
  public class Test {
  
      @Path("/hello")
      @GET
      @Produces({MediaType.APPLICATION_JSON}) 
      public static Resp name() {
        Resp res=new Resp();
        res.setName("name");
        res.setPass("pass");
        System.out.println("Testing");
          return res;
  
      }
  
      @GET
      @Produces({ MediaType.TEXT_HTML, MediaType.TEXT_PLAIN })
      public static String defaul() {
          return "Hello Rest Api";
      }
  
  
  }
  </code></pre>