The contextSource bean should be defined within the <beans> entity of
the deployerConfigContext.xml not as part of the
"authenticationHandlers" <property>.

HTH,

Andrew R Feller, Analyst
Subversion Administrator
University Information Systems
Louisiana State University
[EMAIL PROTECTED]
(office) 225.578.3737

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Nikos Voutsinas
Sent: Friday, August 24, 2007 3:43 AM
To: Yale CAS mailing list
Subject: CAS 3.1 and Ldap authenticationHandlers

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.HttpBasedServiceCred
entialsAuthenticationHandler"
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
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to