title: Spring web.xml errors detected when validating the file "webapp_3_0.xsd"
body: <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app version="3.0" 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/webapp_3_0.xsd"&gt;
  &lt;servlet&gt;
      &lt;servlet-name&gt;DefaultServlet&lt;/servlet-name&gt;
      &lt;servlet-class&gt;
          org.springframework.web.servlet.DispatcherServlet
      &lt;/servletclass&gt;
  &lt;/servlet&gt;
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;DefaultServlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>I get </p>
  
  <blockquote>
    <p>Referenced file contains errors (<a href="http://java.sun.com/xml/ns/javaee/webapp_3_0.xsd" rel="nofollow">http://java.sun.com/xml/ns/javaee/webapp_3_0.xsd</a>). For more information, right click on the message in the Problems View 
     and select "Show Details..."</p>
  </blockquote>
  
  <p>I did, it was not helpful for me: </p>
  
  <blockquote>
    <p>The errors below were detected when validating the file "webapp_3_0.xsd" via the file "web.xml". In most cases these errors can be detected by validating "webapp_3_0.xsd" directly. However it is possible that errors will only occur when webapp_3_0.xsd is validated in the context of web.xml.</p>
  </blockquote>