title: Failing to Deploy Web App to server at context path?
body: <p>I have a simple Jersey jax rs  hello world application that I am trying to deploy to my tomcat server so i can call the resource url and check and see if it gives me the required output but  when i set the context path in the web.xml it doesnt deploy to the server it does however when i take the servlet information out and just leave a blank web.xml meaning this must be my problem. Here is the contents of my web.xml.</p>
  
  <pre><code> `&lt;!DOCTYPE web-app PUBLIC
   "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
   "http://java.sun.com/dtd/web-app_2_3.dtd" &gt;
  
  &lt;web-app&gt;
    &lt;display-name&gt;Web App&lt;/display-name&gt;  
    &lt;servlet-name&gt;ServletContainer&lt;/servlet-name&gt;
  &lt;servlet-class&gt;com.sun.jersey.spi.container.servlet.ServletContainer&lt;/servlet-class&gt;
  &lt;/servlet&gt;
  &lt;servlet-mapping&gt;
  &lt;servlet-name&gt;ServletContainer&lt;/servlet-name&gt;
  &lt;url-pattern&gt;/resources/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>As requested here is the stacktrace of the error</p>
  
  <pre><code>[INFO] [war:war {execution: default-war}]
  [INFO] Packaging webapp
  [INFO] Assembling webapp[app1] in [C:\Users\leo\4thYearUni\Project\app1\target\app1]
  [INFO] Processing war project
  [INFO] Copying webapp resources[C:\Users\leo\4thYearUni\Project\app1\src\main\webapp]
  [INFO] Webapp assembled in[170 msecs]
  [INFO] Building war: C:\Users\leo\4thYearUni\Project\app1\target\app1.war
  [INFO] [tomcat:redeploy {execution: default-cli}]
  [INFO] Deploying war to http://localhost:8080/app1
  [INFO] OK - Undeployed application at context path /app1
  [INFO] FAIL - Failed to deploy application at context path /app1
  </code></pre>
  
  <p>If anyone has any ideas or workarounds this would be much appreciated
  Thank you 
  Chris</p>