title: RESTfull Jersey application, The requested resource is not available
body: <p>It's my first attempt with RESTfull application. I have read many pages with problem same as mine, but they didn't quiet hit a mark.  </p>
  
  <p>This is my service.</p>
  
  <pre><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>My XML file</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;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;Restful Web Service&lt;/servlet-name&gt;
        &lt;url-pattern&gt;/rest/*&lt;/url-pattern&gt;
     &lt;/servlet-mapping&gt;  
  &lt;/web-app&gt;
  </code></pre>
  
  <p>I am using Jersey 2.17 and Tomcat 7.0. It looks like all .jar's are added properly to <strong>/WEB-INF/lib</strong>. I exported my project as .war file and put it into <strong>/Tomcat/webapps</strong> directory.
  Then I am trying to launch</p>
  
  <blockquote>
    <p><a href="http://localhost:8080/RestV1/rest/UserService" rel="nofollow noreferrer">http://localhost:8080/RestV1/rest/UserService</a></p>
  </blockquote>
  
  <p>I am getting this error:</p>
  
  <blockquote>
    <p>HTTP Status 404 - /RestV1/rest/UserService/users The requested resource is
    not available.</p>
  </blockquote>
  
  <p>The methodes are from tutorial so there shouldn't be any problem with them. Also my Tomcat error log is empty.
  Any idea what is wrong?</p>