Note that there are some explanatory texts on larger screens.

plurals
  1. POGetting error org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'springSecurityFilterChain' is defined
    text
    copied!<p>I am running NTLM using Spring Security, I am getting the following error</p> <blockquote> <p>org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'springSecurityFilterChain' is defined</p> </blockquote> <p>How can I resolve this error?</p> <p>I have the following defined in web.xml</p> <pre><code>&lt;filter&gt; &lt;filter-name&gt;springSecurityFilterChain&lt;/filter-name&gt; &lt;filter-class&gt;org.springframework.web.filter.DelegatingFilterProxy&lt;/filter-class&gt; &lt;/filter&gt; &lt;filter-mapping&gt; &lt;filter-name&gt;springSecurityFilterChain&lt;/filter-name&gt; &lt;url-pattern&gt;/*&lt;/url-pattern&gt; &lt;/filter-mapping&gt; </code></pre> <p>Update 1</p> <p>I resolved that error, now I am getting</p> <blockquote> <p>org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'filterSecurityInterceptor' is defined</p> </blockquote> <p>and I have the following </p> <pre><code>&lt;bean id="springSecurityFilterChain" class="org.acegisecurity.util.FilterChainProxy"&gt; &lt;property name="filterInvocationDefinitionSource"&gt; &lt;value&gt; CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON PATTERN_TYPE_APACHE_ANT /**=httpSessionContextIntegrationFilter, exceptionTranslationFilter, ntlmFilter, filterSecurityInterceptor &lt;/value&gt; &lt;/property&gt; &lt;/bean&gt;` </code></pre> <hr> <p>I changed my applicationContext.xml as follows because like @Sean Patrick Floyd mentioned some elements were old and dead and buried. However I have other errors now which needs to be fixed :-)</p> <p>Thanks</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:security="http://www.springframework.org/schema/security" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.2.xsd"&gt; &lt;!--&lt;authentication-manager alias="_authenticationManager"&gt;&lt;/authentication-manager&gt;--&gt; &lt;security:authentication-provider&gt; &lt;security:user-service&gt; &lt;security:user name="testuser" password="PASSWORD" authorities="ROLE_USER, ROLE_ADMIN"/&gt; &lt;security:user name="administrator" password="PASSWORD" authorities="ROLE_USER,ROLE_ADMIN"/&gt; &lt;/security:user-service&gt; &lt;/security:authentication-provider&gt; &lt;bean id="userDetailsAuthenticationProvider" class="com.icesoft.icefaces.security.UserDetailsAuthenticationProvider"&gt; &lt;security:custom-authentication-provider/&gt; &lt;/bean&gt; &lt;bean id="ntlmEntryPoint" class="org.springframework.security.ui.ntlm.NtlmProcessingFilterEntryPoint"&gt; &lt;property name="authenticationFailureUrl" value="/accessDenied.jspx"/&gt; &lt;/bean&gt; &lt;bean id="ntlmFilter" class="org.springframework.security.ui.ntlm.NtlmProcessingFilter"&gt; &lt;security:custom-filter position="NTLM_FILTER"/&gt; &lt;property name="stripDomain" value="true"/&gt; &lt;property name="defaultDomain" value="domain"/&gt; &lt;property name="netbiosWINS" value="domain"/&gt; &lt;property name="authenticationManager" ref="_authenticationManager"/&gt; &lt;/bean&gt; &lt;bean id="exceptionTranslationFilter" class="org.springframework.security.ui.ExceptionTranslationFilter"&gt; &lt;property name="authenticationEntryPoint" ref="ntlmEntryPoint"/&gt; &lt;/bean&gt; &lt;security:http access-decision-manager-ref="accessDecisionManager" entry-point-ref="ntlmEntryPoint"&gt; &lt;security:intercept-url pattern="/accessDenied.jspx" filters="none"/&gt; &lt;security:intercept-url pattern="/**" access="ROLE_USER"/&gt; &lt;/security:http&gt; &lt;bean id="accessDecisionManager" class="org.springframework.security.vote.UnanimousBased"&gt; &lt;property name="allowIfAllAbstainDecisions" value="false"/&gt; &lt;property name="decisionVoters"&gt; &lt;list&gt; &lt;bean id="roleVoter" class="org.springframework.security.vote.RoleVoter"/&gt; &lt;/list&gt; &lt;/property&gt; &lt;/bean&gt; &lt;/beans&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload