title: cvc-complex-type.2.4.a: Invalid content was found starting with element 'init-param'
body: <p>This is my <code>web.xml</code> xsd</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
      &lt;web-app 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_0.xsd"
      version="3.0"&gt;
  </code></pre>
  
  <p>Here is servlet node</p>
  
  <pre><code>&lt;servlet&gt;
      &lt;servlet-name&gt;spring1&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;init-param&gt; &lt;!-- here is a problem --&gt;
          &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
          &lt;param-value&gt;/WEB-INF/spring-servlet.xml&lt;/param-value&gt;
      &lt;/init-param&gt;
  &lt;/servlet&gt;
  </code></pre>
  
  <p>On the marked line xml validator says</p>
  
  <blockquote>
    <p>cvc-complex-type.2.4.a: Invalid content was found starting with element 'init-param'. One of '{"<a href="http://java.sun.com/xml/ns/javaee" rel="noreferrer">http://java.sun.com/xml/ns/javaee</a>":enabled, "<a href="http://java.sun.com/xml/ns/javaee" rel="noreferrer">http://java.sun.com/xml/ns/javaee</a>":async-supported, "<a href="http://java.sun.com/xml/ns/javaee" rel="noreferrer">http://java.sun.com/xml/ns/javaee</a>":run-as, "<a href="http://java.sun.com/xml/ns/javaee" rel="noreferrer">http://java.sun.com/xml/ns/javaee</a>":security-role-ref, "<a href="http://java.sun.com/xml/ns/javaee" rel="noreferrer">http://java.sun.com/xml/ns/javaee</a>":multipart-config}' is expected.</p>
  </blockquote>
  
  <p>What is wrong and how do I correct this error?</p>