title: IntelliJ IDEA "Web.xml error" inspection "Cannot resolve symbol" for error-page > location element in web.xml
body: <p>I'm using IntelliJ IDEA 13 to develop a spring mvc web application.
  When I define the default error-page location in web.xml like this</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
           version="3.1"&gt;
      &lt;error-page&gt;
          &lt;error-code&gt;404&lt;/error-code&gt;
          &lt;location&gt;/error-404&lt;/location&gt;
      &lt;/error-page&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>the value of the location attribute gets highlighted like shown in the following screenshot:</p>
  
  <p><img src="https://i.stack.imgur.com/CKrei.png" alt="expanded inspection information"></p>
  
  <p>The path /error-404 seems to get recognized by IDEA, because the Spring Tool Window shows the mapping:</p>
  
  <p><img src="https://i.stack.imgur.com/xBA2h.png" alt="path is recognized by IDEA"></p>
  
  <p>Looking at <a href="http://youtrack.jetbrains.com/issue/IDEA-30229" rel="nofollow noreferrer">IDEA-30229</a>, I think that IDEA should support paths as value for the location tag.</p>
  
  <p>How do I prevent this inspection to pop up (not disabling it, of course)?</p>