In your web.xml file, do you have something like the following? <context-param> 
        <param-name>contextConfigLocation</param-name>          <param-value>   
                --                        --                    
/WEB-INF/my-filters.xml                 </param-value>  </context-param>
If yes, you might want to check my-filters.xml and see if you have a bean named 
"authenticationFilter" defined there, something like:
<bean name="authenticationFilter"               
class="org.jasig.cas.client.authentication.AuthenticationFilter">               
<property name="casServerLoginUrl" value="XXX" />               <property 
name="serverName" value="YYY}" />             <property name="renew" 
value="false" />         <property name="gateway" value="true" />        
</bean> HIH,


--- On Tue, 2012/9/25, Qian, Yi <[email protected]> wrote:



 

 
Hello,



I followed 
https://wiki.jasig.org/display/CASC/Configuring+the+JA-SIG+CAS+Client+for+Java+using+Spring
 link trying to set up my application



In web.xml, I have 













<filter>
    <filter-name>CAS Authentication Filter</filter-name>
    
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
    <init-param>
        <param-name>saml1Authenticaion</param-name>
        <param-value>authenticationFilter</param-value>
    </init-param>
  </filter>


















<filter-mapping>
    <filter-name>CAS Authentication Filter</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>



In Spring applicationContext.xml, I have




<bean id="saml11Authentication" 
class="org.jasig.cas.client.authentication.Saml11AuthenticationFilter"/>






<bean
    name="authenticationFilter"
    class="org.jasig.cas.client.authentication.Saml11AuthenticationFilter"
    p:casServerLoginUrl="https://test.server.com:8443/cas/login";
    p:renew="false"
    p:gateway="false"
    p:service="https://web.server.com:8443"; />



But Tomcat gives following error



SEVERE: Exception starting filter CAS Authentication Filter
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 
'CAS Authentication Filter' is defined



I went through the linked page multiple times, did I miss anything?



Regards,



Yi













-- 
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