title: HTTP Status 404 - Could not find resource for relative : of full path: RESTEasy
body: <p>I have already spent hours on solving the following problem:</p>
  
  <p>I have a Maven Project with the following 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;xy&lt;/display-name&gt;
  
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;resteasy-servlet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/rest/*&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  
      &lt;!-- Auto scan REST service --&gt;
      &lt;context-param&gt;
          &lt;param-name&gt;resteasy.scan&lt;/param-name&gt;
          &lt;param-value&gt;true&lt;/param-value&gt;
      &lt;/context-param&gt;
  
          &lt;!-- this should be the same URL pattern as the servlet-mapping property  --&gt;
      &lt;context-param&gt;
          &lt;param-name&gt;resteasy.servlet.mapping.prefix&lt;/param-name&gt;
          &lt;param-value&gt;/rest&lt;/param-value&gt;
      &lt;/context-param&gt;
  
      &lt;listener&gt;
          &lt;listener-class&gt; org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap&lt;/listener-class&gt;
      &lt;/listener&gt;
  
      &lt;servlet&gt;
          &lt;servlet-name&gt;resteasy-servlet&lt;/servlet-name&gt;
          &lt;servlet-class&gt;
              org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher
          &lt;/servlet-class&gt;
      &lt;/servlet&gt;
  
  &lt;/web-app&gt;
  </code></pre>
  
  <p>My Java class looks as follows:</p>
  
  <pre><code>@Path("/file")
  public class File 
  {   
      @POST
      @Path("/upload")
      @Consumes("multipart/form-data")
      public Response uploadFile(@MultipartForm Multipart form) {}
  </code></pre>
  
  <p>After Project-> Run as -> Run on Server the correct index.jsp is shown.</p>
  
  <p></p>
  
  <p>When I click a button for uploading the file I get the error:</p>
  
  <p>HTTP Status 404 - Could not find resource for relative : /file/upload of full path: <a href="http://localhost:8080/Projectname/rest/file/upload" rel="nofollow">http://localhost:8080/Projectname/rest/file/upload</a></p>
  
  <p>What I aleady did:</p>
  
  <ul>
  <li>clean project</li>
  <li>update Maven</li>
  <li>Run as -> Maven -> clean install (build sucess)</li>
  <li>delete Tomcat and installed it again</li>
  <li>disabled autoscan and added "File" manually</li>
  </ul>
  
  <p>Furthermore I get warnings that some jars cannot be found on the Tomcat path (/Tomcat8/wtpwebapps/Projectname/WEB-INF/lib/activation-1.1.jar (No such file or directory - but it is available in the pom.xml and under target->Projectname->WEB-INF->lib)</p>
  
  <p>I use resteasy-jaxrs version 2.2.1.GA</p>
  
  <p>I appreciate any help :)</p>