In the latest version of CAS, we're using Spring Web Flow 2, so you'll need
something like this:
    <bean class="org.springframework.webflow.mvc.servlet.FlowHandlerMapping"
p:flowRegistry-ref="flowRegistry" p:order="2">
        <property name="interceptors">
         <list>
            <ref bean="localeChangeInterceptor" />
 <ref bean="throttleInterceptor" />
</list>
        </property>
    </bean>

Cheers,
Scott


On Wed, May 5, 2010 at 2:18 PM, aruhi <[email protected]> wrote:

> I am working with cas-server-3.4.2 and following the steps given for
> Configuration of the In-Memory Approaches at
> http://www.ja-sig.org/wiki/display/CASUM/Throttling+Login+Attempts
> for throttling login attempts and when I am deploying the cas.war I am
> getting following error:-
>
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'handlerMappingB' defined in ServletContext resource
> [/WEB-INF/cas-servlet.xml]: Initialization of bean failed; nested exception
> is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
> named 'loginController' is defined
>
>
> And when I copied following code block in cas-servlet.xml from a previous
> version i.e. cas-server-3.3.1 :-
>
> <bean
>                id="loginController"
>
>  class="org.springframework.webflow.executor.mvc.FlowController"
>                p:flowExecutor-ref="flowExecutor"
>                p:defaultFlowId="login-webflow">
>                <property
>                        name="argumentHandler">
>                        <bean
> class="org.springframework.webflow.executor.support.RequestParameterFlowExecutorArgumentHandler"
>                                p:flowExecutionKeyArgumentName="lt"
>                                p:defaultFlowId="login-webflow" />
>                </property>
>        </bean>
>
>
> A new error comes, which is as follows:-
>
> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
> class [org.springframework.webflow.executor.mvc.FlowController] for bean
> with name 'loginController' defined in ServletContext resource
> [/WEB-INF/cas-servlet.xml]; nested exception is
> java.lang.ClassNotFoundException:
> org.springframework.webflow.executor.mvc.FlowController
>
>
> What is it that I am missing to add?
>
> Thanks
>
>
> --
> You are currently subscribed to [email protected] as:
> [email protected]
> To unsubscribe, change settings or access archives, see
> http://www.ja-sig.org/wiki/display/JSG/cas-user
>

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to