title: cvc-complex-type.2.4.a:Invalid content was found starting with element 'bean'
body: <p>I've tried solving this issue for hours. 
  When I run my code I get an error saying:</p>
  
  <blockquote>
    <p>cvc-complex-type.2.4.a:Invalid content was found starting with element 'bean' One of 
    '{"<a href="http://www.springframework.org/schema/context" rel="nofollow">http://www.springframework.org/schema/context</a>":include-filter, 
    "<a href="http://www.springframework.org/schema/context" rel="nofollow">http://www.springframework.org/schema/context</a>":exclude-filter}' is expected.</p>
  </blockquote>
  
  <p>I've looked around alot for answers, some suggestions were that one should make sure the right versions are used. I use the same version in my xml as in my pom file. (I'm using maven with eclipse btw).</p>
  
  <p>Any suggestions on what the problem might be?</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
      &lt;beans xmlns:context="http://www.springframework.org/schema/context" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
      xmlns="http://www.springframework.org/schema/beans" 
      xsi:schemaLocation="http://www.springframework.org/schema/beans 
      http://www.springframework.org/schema/beans/spring-beans-3.2.7.xsd
      http://www.springframework.org/schema/context 
      http://www.springframework.org/schema/context/spring-context-3.2.7.xsd"&gt;
      &lt;context:component-scan base-package="org.mywebbapp.filemanagement"&gt;
  
      &lt;bean
          class="org.springframework.beans.factory.config.ServiceLocatorFactoryBean"
          id="FileStoreFactory"&gt;
          &lt;property name="FileStore"
              value="org.mywebbapp.filemanagement.FileStoreFactory"&gt;
          &lt;/property&gt;
      &lt;/bean&gt;
      &lt;alias alias="FH" name="FileHandler" /&gt;
  &lt;/context:component-scan&gt;
  &lt;/beans&gt;
  </code></pre>