title: xmlBeanDefinitionStoreException while implementing spring security
body: <p>I am trying to implement spring security in my application> I am following this code project tutorial </p>
  
  <blockquote>
    <p><a href="http://www.codeproject.com/Articles/253901/Getting-Started-Spring-Security" rel="nofollow">http://www.codeproject.com/Articles/253901/Getting-Started-Spring-Security</a></p>
  </blockquote>
  
  <p>Here my spring-secrity.xml file looks like-</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/security"
      xmlns:bean="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-3.0.xsd
            http://www.springframework.org/schema/security
            http://www.springframework.org/schema/security/spring-security-3.0.3.xsd"&gt;
  
      &lt;http auto-config='true'&gt;
          &lt;intercept-url pattern="/**" access="ROLE_USER" /&gt;
      &lt;/http&gt;
  
      &lt;authentication-manager&gt;
          &lt;authentication-provider&gt;
              &lt;user-service&gt;
                  &lt;user name="testadmin" password="testadminpassword"
                      authorities="ROLE_USER, ROLE_ADMIN" /&gt;
                  &lt;user name="testuser" password="testuserpassword" authorities="ROLE_USER" /&gt;
              &lt;/user-service&gt;
          &lt;/authentication-provider&gt;
      &lt;/authentication-manager&gt;
  
  &lt;/beans&gt;
  </code></pre>
  
  <p>But while running the code I am getting the exception-</p>
  
  <blockquote>
    <p>[2013-08-23 15:27:14,607] ERROR
    [org.springframework.web.context.ContextLoader] Context initialization
    failed 
    org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
    Line 8 in XML document from ServletContext resource
    [/WEB-INF/spring-security.xml] is invalid; nested exception is
    org.xml.sax.SAXParseException; lineNumber: 8; columnNumber: 86;
    cvc-elt.1: Cannot find the declaration of element 'beans'.</p>
  </blockquote>
  
  <p>can any one please through the light whats the issue here and also how to rectify it, any help will be appreciated.</p>