Check the deployed WAR file to make sure the files you think are removed
aren't there still.


On Fri, May 7, 2010 at 12:38 PM, Ashima <[email protected]> wrote:

> I was trying to enable the
> InMemoryThrottledSubmissionByIpAddressAndUsernameHandlerInterceptorAdapter
> in cas server 3.4.2  and I followed the steps at
> http://www.ja-sig.org/wiki/display/CASUM/Throttling+Login+Attempts
>
> and added following code to cas-servlet.xml:-
>
> <bean class="org.springframework.webflow.mvc.servlet.FlowHandlerMapping"
> p:flowRegistry-ref="flowRegistry" p:order="2">
>        <property name="interceptors">
>                <list>
>                <ref local="localeChangeInterceptor" />
>                                <!-- <ref
> bean="inMemoryThrottledSubmissionByIpAddressAndUsernameHandlerInterceptorAdapter"
> />-->
>                        </list>
>        </property>
>    </bean>
>
> <bean
>
>  
> id="inMemoryThrottledSubmissionByIpAddressAndUsernameHandlerInterceptorAdapter"
>
>  
> class="org.jasig.cas.web.support.InMemoryThrottledSubmissionByIpAddressAndUsernameHandlerInterceptorAdapter"/>
>
>
>
> And following code to spring-configuration/throttleInterceptorTrigger.xml
> :-
>
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans";
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>       xmlns:p="http://www.springframework.org/schema/p";
>       xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>
>
> <bean id="throttleInterceptor"
> class="org.jasig.cas.web.support.InMemoryThrottledSubmissionByIpAddressAndUsernameHandlerInterceptorAdapter"
> />
>
> <bean id="throttleInterceptorJobDetail"
> class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"
>   p:targetObject-ref="throttleInterceptor"
>   p:targetMethod="decrementCounts" />
>
> <bean id="periodicThrottleCleanerTrigger"
> class="org.springframework.scheduling.quartz.SimpleTriggerBean"
>   p:jobDetail-ref="throttleInterceptorJobDetail"
>   p:startDelay="0"
>   p:repeatInterval="1000" />
> </beans>
>
> And deployed cas.war which was perfectly fine.
>
> Then I removed this extra code which I had added(plus
> spring-configuration/throttleInterceptorTrigger.xml) and deployed cas.war
> again. But still my cas.log file is being flooded with following logs:-
>
> DEBUG
> [org.jasig.cas.web.support.InMemoryThrottledSubmissionByIpAddressAndUsernameHandlerInterceptorAdapter]
> - Decrementing counts for throttler.  Starting key count: 0
> DEBUG
> [org.jasig.cas.web.support.InMemoryThrottledSubmissionByIpAddressAndUsernameHandlerInterceptorAdapter]
> - Done decrementing count for throttler.
> DEBUG
> [org.jasig.cas.web.support.InMemoryThrottledSubmissionByIpAddressAndUsernameHandlerInterceptorAdapter]
> - Decrementing counts for throttler.  Starting key count: 0
> DEBUG
> [org.jasig.cas.web.support.InMemoryThrottledSubmissionByIpAddressAndUsernameHandlerInterceptorAdapter]
> - Done decrementing count for throttler.
> DEBUG
> [org.jasig.cas.web.support.InMemoryThrottledSubmissionByIpAddressAndUsernameHandlerInterceptorAdapter]
> - Decrementing counts for throttler.  Starting key count: 0
> DEBUG
> [org.jasig.cas.web.support.InMemoryThrottledSubmissionByIpAddressAndUsernameHandlerInterceptorAdapter]
> - Done decrementing count for throttler.
> ... and so on
>
>
> Even though I have removed all the changes and deployed the war again still
> these logs wont stop. I do have DEBUG on for org.jasig.cas for some
> debugging, and I am glad about it as otherwise I wouldn't have been able to
> find out about the these logs.
> I even restarted tomcat but still its the same and these logs start coming
> again.
>
> --
> 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