title: Eclipse web.xml Referenced File Error
body: <p>I imported a project in eclipse as maven project - I upgraded the web-app versions from 2.5 to 3.1 because it got imported as Dynamic web Module 3.1. Now I am getting the following error :</p>
  
  <blockquote>
    <p>The errors below were detected when validating the file "web-app_3_1.xsd" via the file "web.xml".  In most cases these errors can be detected by validating "web-app_3_1.xsd" directly.  However it is possible that errors will only occur when web-app_3_1.xsd is validated in the context of web.xml.</p>
    
    <p>s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than xs:appinfo and xs:documentation. Saw 'var _U="undefined";'</p>
  </blockquote>
  
  <p>Related  Questions:</p>
  
  <ol>
  <li><a href="https://stackoverflow.com/questions/13437569/what-does-this-web-xml-error-mean">Question1</a></li>
  <li><a href="https://stackoverflow.com/questions/4816330/web-app-2-5-xsd-showing-errors-when-validating-web-xml-in-eclipse">Question2</a></li>
  </ol>
  
  <p>Above 2 questions on SO point to the same issue and the answers suggests that the namespace should be javaee, which is already the case:</p>
  
  <pre><code>&lt;web-app version="3.1" xmlns="http://java.sun.com/xml/ns/javaee"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_1.xsd"&gt;
  </code></pre>