title: cvc-id.3 error in web.xml
body: <p>I'm getting this error message while editing web.xml file in eclipse for SpringMVC web-app: </p>
  
  <blockquote>
    <p>cvc-id.3: A field of identity
    constraint
    'web-app-servlet-name-uniqueness'
    matched element 'web-app', but this
    element does not have a simple type.</p>
  </blockquote>
  
  <p>here is part of my 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" 
      xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
      id="WebApp_ID" version="2.5"&gt;
  
      &lt;servlet&gt;
          &lt;servlet-name&gt;dispatcher&lt;/servlet-name&gt;
          &lt;servlet-class&gt;
              org.springframework.web.servlet.DispatcherServlet
          &lt;/servlet-class&gt;
          &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
      &lt;/servlet&gt;
  </code></pre>
  
  <p>Error points at the <code>&lt;servlet-name&gt;dispatcher&lt;/servlet-name&gt;</code> declaration.
  What should i do to fix it?
  Thank you in advance.</p>