title: RESTEasy-Spring integrated webapp throws cryptic error: NoResourceFoundFailure
body: <p>I am working on a webapp that uses both the Spring Framework and RESTEasy. The app has been configured to send REST requests for some time, but I recently set it up to receive REST requests as well. I configured my web.xml appropriately, and <strong>the app has received and processed REST requests with no problem</strong>.</p>
  
  <p>here is a web.xml snippet, detailing the REST setup:</p>
  
  <pre><code>&lt;listener&gt;
      &lt;listener-class&gt;org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap&lt;/listener-class&gt;
  &lt;/listener&gt;
  
  &lt;listener&gt;
      &lt;listener-class&gt;
          org.jboss.resteasy.plugins.spring.SpringContextLoaderListener
      &lt;/listener-class&gt;
  &lt;/listener&gt;
  
  ...
  
  &lt;servlet&gt;
      &lt;servlet-name&gt;Resteasy&lt;/servlet-name&gt;
      &lt;servlet-class&gt;
          org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher
      &lt;/servlet-class&gt;
  &lt;/servlet&gt;
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;Resteasy&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/AutomatedProcessing/rest/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>However, when I walk around the app in a browser, I keep seeing these exceptions in the log:</p>
  
  <pre><code>    org.jboss.resteasy.springmvc.ResteasyHandlerMapping - Resource Not Found: Could not find resource for relative :
  org.jboss.resteasy.spi.NoResourceFoundFailure: Could not find resource for relative : /AccountManagement/login.do of full path: https://dev.produceredge.com:7002/AccountManagement/login.do
  </code></pre>
  
  <p>It seems to me like REST is suddenly trying to handle all requests, <strong>not just requests that match the /AutomatedProcessing/rest/* URL pattern.</strong>
  I have found no details on the <strong>NoResourceFoundFailure</strong> exception, or why REST would be trying to handle requests outside of its assigned URL pattern. The exception isn't fatal to the user, but I think it might be destroying something I don't know about. Plus, exceptions in the logs are never fun. I would greatly appreciate any insight on this exception!</p>