title: Restful Web service issue - HTTP Status 404 - The requested resource is not available
body: <p>I am trying one restful web service example so when I am going to hit url that time I am getting HTTP Status 404 - The requested resource is not available</p>
  
  <p>below are the detail of my code, if you want any other information let me know</p>
  
  <p>Web.xml</p>
  
  <pre class="lang-html prettyprint-override"><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;User Management&lt;/display-name&gt;
     &lt;servlet&gt;
        &lt;servlet-name&gt;Jersey RESTful Application&lt;/servlet-name&gt;
        &lt;servlet-class&gt;org.glassfish.jersey.servlet.ServletContainer&lt;/servlet-class&gt;
           &lt;init-param&gt;
              &lt;param-name&gt;jersey.config.server.provider.packages&lt;/param-name&gt;
              &lt;param-value&gt;com.tutorialspoint&lt;/param-value&gt;
           &lt;/init-param&gt;
        &lt;/servlet&gt;
     &lt;servlet-mapping&gt;
     &lt;servlet-name&gt;Jersey RESTful 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>Service class </p>
  
  <pre class="lang-html prettyprint-override"><code>package com.tutorialspoint;
  
  import java.util.List;
  
  import javax.ws.rs.GET;
  import javax.ws.rs.Path;
  import javax.ws.rs.Produces;
  import javax.ws.rs.core.MediaType;
  
  @Path("/UserService")
  public class UserService {
  
     UserDao userDao = new UserDao();
  
     @GET
     @Path("/users")
     @Produces(MediaType.APPLICATION_XML)
     public List&lt;User&gt; getUsers(){
        return userDao.getAllUsers();
     }    
  }
  </code></pre>
  
  
  
  <p>ALL jars</p>
  
  <p><a href="https://i.stack.imgur.com/ev0Sh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ev0Sh.png" alt="enter image description here"></a></p>
  
  <p>Tomcat webapps</p>
  
  <p><a href="https://i.stack.imgur.com/VctRV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VctRV.png" alt="enter image description here"></a></p>