org.springframework.security.config.SecurityConfigurationException: More than one RememberMeServices bean found.

Spring JIRA | Luke Taylor | 9 years ago
  1. 0

    I use a org.springframework.web.filter.DelegatingFilterProxy to configure my application filters in my application context. as soon as I add some http://www.springframework.org/schema/security namespace driven security, the following exception occurs : org.springframework.security.config.SecurityConfigurationException: Filter requestFilter must implement the Ordered interface at org.springframework.security.config.HttpSecurityConfigPostProcessor.orderFilters(HttpSecurityConfigPostProcessor.java:186) at org.springframework.security.config.HttpSecurityConfigPostProcessor.configureFilterChain(HttpSecurityConfigPostProcessor.java:146) at org.springframework.security.config.HttpSecurityConfigPostProcessor.postProcessBeanFactory(HttpSecurityConfigPostProcessor.java:47) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:541) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:524) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:251) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190) I tracked this down to HttpSecurityConfigPostProcessor.orderFilters using beanFactory.getBeansOfType(Filter.class) Is there a way that HttpSecurityConfigPostProcessor can be configured to deal with only the filters in the spring-security package ?

    Spring JIRA | 9 years ago | Cameron Braid
    org.springframework.security.config.SecurityConfigurationException: Filter requestFilter must implement the Ordered interface
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Equivalent definition of in pre-namespace Spring 2.x

    Stack Overflow | 2 years ago | ELĂ­as Vargas
    org.springframework.security.config.SecurityConfigurationException: No UserDetailsService registered.
  4. 0

    I use a org.springframework.web.filter.DelegatingFilterProxy to configure my application filters in my application context. as soon as I add some http://www.springframework.org/schema/security namespace driven security, the following exception occurs : org.springframework.security.config.SecurityConfigurationException: Filter requestFilter must implement the Ordered interface at org.springframework.security.config.HttpSecurityConfigPostProcessor.orderFilters(HttpSecurityConfigPostProcessor.java:186) at org.springframework.security.config.HttpSecurityConfigPostProcessor.configureFilterChain(HttpSecurityConfigPostProcessor.java:146) at org.springframework.security.config.HttpSecurityConfigPostProcessor.postProcessBeanFactory(HttpSecurityConfigPostProcessor.java:47) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:541) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:524) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:251) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190) I tracked this down to HttpSecurityConfigPostProcessor.orderFilters using beanFactory.getBeansOfType(Filter.class) Is there a way that HttpSecurityConfigPostProcessor can be configured to deal with only the filters in the spring-security package ?

    Spring JIRA | 9 years ago | Cameron Braid
    org.springframework.security.config.SecurityConfigurationException: Filter requestFilter must implement the Ordered interface

    Root Cause Analysis

    1. org.springframework.security.config.SecurityConfigurationException

      More than one RememberMeServices bean found.

      at org.springframework.security.config.HttpSecurityConfigPostProcessor.injectRememberMeServicesIntoFiltersRequiringIt()
    2. spring-security-config
      HttpSecurityConfigPostProcessor.injectRememberMeServicesIntoFiltersRequiringIt
      1. org.springframework.security.config.HttpSecurityConfigPostProcessor.injectRememberMeServicesIntoFiltersRequiringIt(HttpSecurityConfigPostProcessor.java:72)
      1 frame