Hi all, I am having problems with the deployment of CAS 3.1 server when I use it with the BindLdapAuthenticationHandler. CAS server complains for a missing contextSource (NoSuchBeanDefinitionException: No bean named 'contextSource' is defined), eventhought contextSource is correctly defined, according to what is described in docs. Besides some warnings, which were ignored (mostly checksum errors) I 've noticed no other problems with maven.
I am using cas with JDK1.6u2 and tomcat 6.0.14. All ideas are welcome... Here are the exact error message and the iteresting part of deployerConfigContext.xml ======================= Context initialization failed - org.springframework.web.context.ContextLoader [main; 2007-08-24 08:13:29,889] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'centralAuthenticationService' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'authenticationManager' while setting bean property 'authenticationManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationManager' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]: Cannot create inner bean 'org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler#167e3a5' of type [org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler] while setting bean property 'authenticationHandlers' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler#167e3a5' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]: Cannot resolve reference to bean 'contextSource' while setting bean property 'contextSource'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'contextSource' is defined ================================ <property name="authenticationHandlers"> <list> <bean class="org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler" p:httpClient-ref="httpClient" /> <bean class="org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler" > <property name="filter" value="uid=%u" /> <property name="searchBase" value="dc=edunet,dc=gr" /> <property name="contextSource" ref="contextSource" /> </bean> <bean id="contextSource" class="org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource" > <property name="pooled" value="true" /> <property name="authenticatedReadOnly" value="true" /> <property name="urls"> <list> <value>ldap://ldap.edunet.gr/</value> </list> </property> <property name="userName" value="uid=xxxxxxx,ou=xxxx" /> <property name="password" value="xxxxxx" /> <property name="baseEnvironmentProperties"> <map> <entry> <key><value>java.naming.security.authentication</value></key> <value>simple</value> </entry> </map> </property> </bean> </list> </property> _______________________________________________ Yale CAS mailing list [email protected] http://tp.its.yale.edu/mailman/listinfo/cas
