title: Failed to read schema document 'http://www.springframework.org/schema/security/spring-security-4.0.xsd'
body: <p>I want to use Spring security so configured like this </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans:beans xmlns="http://www.springframework.org/schema/security"
  xmlns:beans="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
                      http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-4.0.xsd"&gt;
  
      &lt;http&gt;
          &lt;intercept-url pattern="/add-job**" access="hasRole('USER')" /&gt;
          &lt;form-login /&gt;
          &lt;logout /&gt;
      &lt;/http&gt;
  
      &lt;authentication-manager&gt;
          &lt;authentication-provider&gt;
              &lt;user-service&gt;
              &lt;user name="admin" password="admin" authorities="ROLE_USER, ROLE_ADMIN" /&gt;
              &lt;/user-service&gt;
          &lt;/authentication-provider&gt;
      &lt;/authentication-manager&gt;
  
  &lt;/beans:beans&gt;
  </code></pre>
  
  <p>but I'm getting errors as </p>
  
  <blockquote>
    <p>Multiple annotations found at this line:
        - schema_reference.4: Failed to read schema document '<a href="http://www.springframework.org/schema/" rel="nofollow">http://www.springframework.org/schema/</a>
         security/spring-security-4.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) 
         the root element of the document is not .
        - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 
         'http'.</p>
  </blockquote>
  
  <p>and </p>
  
  <p>and my pom.xml for Security is</p>
  
  <pre><code>&lt;!-- Security --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
              &lt;artifactId&gt;spring-security-web&lt;/artifactId&gt;
              &lt;version&gt;4.0.2.RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
              &lt;artifactId&gt;spring-security-config&lt;/artifactId&gt;
              &lt;version&gt;4.0.2.RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>
  
  <p>I can not find way to fix this issue.</p>