title: The matching wildcard is strict, but no declaration can be found for element 'bean'
body: <p>I am trying to integrate a Spring Security project with CAS server for authentication by configuring the CAS client. Before applying it to my web app I tried it to the Spring Security sample project.</p>
  
  <p>I added the CAS plugins as indicated here <a href="https://wiki.jasig.org/display/CASC/Configuring+the+JA-SIG+CAS+Client+for+Java+using+Spring" rel="noreferrer">https://wiki.jasig.org/display/CASC/Configuring+the+JA-SIG+CAS+Client+for+Java+using+Spring</a>   adapting it to the case.</p>
  
  <p>When I run or debug the sample web app I receive the error I mentioned on the title which is referred to the line</p>
  
  <pre><code> &lt;bean id="springSecurityFilterChain" class="org.springframework.security.web.FilterChainProxy"&gt;
  </code></pre>
  
  <p>of the following spring-security.xml:</p>
  
  <pre><code> &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"
      xmlns:context="http://www.springframework.org/schema/context"
  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.2.xsd
     http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd"&gt;
  
  &lt;!-- enable use-expressions --&gt;
  &lt;http auto-config="true" use-expressions="true"&gt;
      &lt;intercept-url pattern="/admin**" access="hasRole('ROLE_ADMIN')" /&gt;
  
      &lt;!-- access denied page --&gt;
      &lt;access-denied-handler error-page="/403" /&gt;
      &lt;form-login 
          login-page="/login" 
          default-target-url="/welcome" 
          authentication-failure-url="/login?error" 
          username-parameter="username"
          password-parameter="password" /&gt;
      &lt;logout logout-success-url="/login?logout"  /&gt;
      &lt;!-- enable csrf protection --&gt;
      &lt;csrf/&gt;
  &lt;/http&gt;
  
  &lt;!-- Select users and user_roles from database --&gt;
  &lt;authentication-manager&gt;
      &lt;authentication-provider&gt;
          &lt;jdbc-user-service id="userService" data-source-ref="dataSource"
              users-by-username-query=
                  "select username,password, enabled from users where username=?"
              authorities-by-username-query=
                  "select username, role from user_roles where username =?  " /&gt;
      &lt;/authentication-provider&gt;
  &lt;/authentication-manager&gt;
  
      &lt;bean id="springSecurityFilterChain" class="org.springframework.security.web.FilterChainProxy"&gt;
      &lt;security:filter-chain-map path-type="ant"&gt;
          &lt;security:filter-chain pattern="/" filters="casValidationFilter, wrappingFilter" /&gt;
          &lt;security:filter-chain pattern="/secure/receptor" filters="casValidationFilter" /&gt;
          &lt;security:filter-chain pattern="/j_spring_security_logout" filters="logoutFilter,etf,fsi" /&gt;
          &lt;security:filter-chain pattern="/**" filters="casAuthenticationFilter, casValidationFilter, wrappingFilter, sif,j2eePreAuthFilter,logoutFilter,etf,fsi"/&gt;
      &lt;/security:filter-chain-map&gt;
  &lt;/bean&gt;
  &lt;bean id="sif" class="org.springframework.security.web.context.SecurityContextPersistenceFilter"/&gt;
  &lt;bean id="preAuthAuthProvider" class="org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationProvider"&gt;
      &lt;property name="preAuthenticatedUserDetailsService"&gt;
          &lt;bean id="userDetailsServiceWrapper" class="org.springframework.security.core.userdetails.UserDetailsByNameServiceWrapper"&gt;
              &lt;property name="userDetailsService" ref="userService"/&gt;
          &lt;/bean&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  
  &lt;bean id="preAuthEntryPoint" class="org.springframework.security.web.authentication.Http403ForbiddenEntryPoint" /&gt;
  
  &lt;bean id="j2eePreAuthFilter" class="org.springframework.security.web.authentication.preauth.j2ee.J2eePreAuthenticatedProcessingFilter"&gt;
      &lt;property name="authenticationManager" ref="authenticationManager"/&gt;
      &lt;property name="authenticationDetailsSource"&gt;
          &lt;bean class="org.springframework.security.web.authentication.WebAuthenticationDetailsSource" /&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  
  &lt;bean id="logoutFilter" class="org.springframework.security.web.authentication.logout.LogoutFilter"&gt;
      &lt;constructor-arg value="/"/&gt;
      &lt;constructor-arg&gt;
          &lt;list&gt;
              &lt;bean class="org.springframework.security.web.authentication.logout.SecurityContextLogoutHandler"/&gt;
          &lt;/list&gt;
      &lt;/constructor-arg&gt;
  &lt;/bean&gt;
  
  &lt;bean id="servletContext" class="org.springframework.web.context.support.ServletContextFactoryBean"/&gt;
  
  &lt;bean id="etf" class="org.springframework.security.web.access.ExceptionTranslationFilter"&gt;
      &lt;property name="authenticationEntryPoint" ref="preAuthEntryPoint"/&gt;
  &lt;/bean&gt;
  
  &lt;bean id="httpRequestAccessDecisionManager" class="org.springframework.security.access.vote.AffirmativeBased"&gt;
      &lt;property name="allowIfAllAbstainDecisions" value="false"/&gt;
      &lt;property name="decisionVoters"&gt;
          &lt;list&gt;
              &lt;ref bean="roleVoter"/&gt;
          &lt;/list&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  &lt;bean id="fsi" class="org.springframework.security.web.access.intercept.FilterSecurityInterceptor"&gt;
      &lt;property name="authenticationManager" ref="authenticationManager"/&gt;
      &lt;property name="accessDecisionManager" ref="httpRequestAccessDecisionManager"/&gt;
      &lt;property name="securityMetadataSource"&gt;
          &lt;security:filter-invocation-definition-source&gt;
              &lt;security:intercept-url pattern="/**" access="ROLE_ANONYMOUS,ROLE_USER"/&gt;
          &lt;/security:filter-invocation-definition-source&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  &lt;bean id="roleVoter" class="org.springframework.security.access.vote.RoleVoter"/&gt;
  
  &lt;bean id="securityContextHolderAwareRequestFilter" class="org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter"/&gt;
  &lt;bean class="org.jasig.cas.client.validation.Saml11TicketValidator" id="ticketValidator"&gt;
      &lt;constructor-arg index="0" value={cas.login} /&gt;
  
      &lt;!--&lt;property name="proxyGrantingTicketStorage" ref="proxyGrantingTicketStorage" /&gt;--&gt;
      &lt;!--&lt;property name="proxyCallbackUrl" value="http://localhost:8080/ui/" /&gt;--&gt;
  &lt;/bean&gt;
  &lt;bean id="proxyGrantingTicketStorage" class="org.jasig.cas.client.proxy.ProxyGrantingTicketStorageImpl" /&gt;
  &lt;bean id="casAuthenticationFilter" class="org.jasig.cas.client.authentication.AuthenticationFilter"&gt;
      &lt;property name="casServerLoginUrl" value={cas.login.url} /&gt;
      &lt;property name="serverName" value={cas.login.url} /&gt;
  &lt;/bean&gt;
  &lt;bean id="casValidationFilter" class="org.jasig.cas.client.validation.Saml11TicketValidationFilter"&gt;
      &lt;property name="serverName" value="http://localhost:8080/ui" /&gt;
      &lt;property name="exceptionOnValidationFailure" value="true" /&gt;
      &lt;!--&lt;property name="proxyGrantingTicketStorage" ref="proxyGrantingTicketStorage" /&gt;--&gt;
      &lt;property name="redirectAfterValidation" value="true" /&gt;
      &lt;property name="ticketValidator" ref="ticketValidator" /&gt;
      &lt;!--&lt;property name="proxyReceptorUrl" value="/secure/receptor" /&gt;--&gt;
  &lt;/bean&gt;
  &lt;bean id="wrappingFilter" class="org.jasig.cas.client.util.HttpServletRequestWrapperFilter" /&gt;
  
  &lt;/beans:beans&gt;
  </code></pre>
  
  <p>Any help is appreciated.</p>