title: Why is Jersey servlet mapping not working(not appending reservations)?
body: <p>This question is based off my last <a href="https://stackoverflow.com/questions/41176198/why-can-tomcat-not-find-my-web-application">question</a> and this <a href="https://github.com/ccoenraets/backbone-jax-cellar" rel="nofollow noreferrer">starter code</a></p>
  
  <p>So I'am working through my issue and thanks to the comment by @arcy, have been taking a close look at the logs. Here's my logs when requesting all the reservations(as opposed to the starter code which requests all wines)</p>
  
  <p>For configuration, I only changed web.xml(below) in locations to reflect my updated package names.</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_3_0.xsd" id="WebApp_ID" version="3.0"&gt;
  &lt;servlet&gt;
      &lt;servlet-name&gt;Jersey&lt;/servlet-name&gt;
      &lt;servlet-class&gt;com.sun.jersey.spi.container.servlet.ServletContainer&lt;/servlet-class&gt;
      &lt;!-- 
      &lt;init-param&gt;
          &lt;param-name&gt;com.sun.jersey.config.property.packages&lt;/param-name&gt;
          &lt;param-value&gt;org.chris438&lt;/param-value&gt;
      &lt;/init-param&gt;
      --&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;com.sun.jersey.config.property.packages&lt;/param-name&gt;
          &lt;param-value&gt;org.chris438;org.codehaus.jackson.jaxrs&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;Jersey&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/api/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>My context root is backbone-jax-cellar-master(shown below and with project structure)
  <a href="https://i.stack.imgur.com/ky3ci.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ky3ci.png" alt="enter image description here"></a></p>
  
  <p>After making a few request to <a href="http://localhost:8080/backbone-jax-cellar-master/#reservations" rel="nofollow noreferrer">http://localhost:8080/backbone-jax-cellar-master/#reservations</a>, this is what my logs look like </p>
  
  <pre><code>0:0:0:0:0:0:0:1 - - [15/Dec/2016:20:41:14 -0800] "GET /backbone-jax-cellar-master/ HTTP/1.1" 404 1048
  0:0:0:0:0:0:0:1 - - [15/Dec/2016:20:41:26 -0800] "GET /backbone-jax-cellar-master/ HTTP/1.1" 404 1048
  </code></pre>
  
  <p>What I noticed right away was that it ignored my reservations resource completely and just routed to the default route. Does anyone know why this is happening? I defined ReservationResource(below) much similar to the starter code's WineResource which compiles and runs.</p>
  
  <pre><code>@Path("/reservations")
  public class ReservationResource {
      ReservationDAO dao = new ReservationDAO();
  }
  </code></pre>