I followed "Best Practice - Setting Up CAS Locally using the Maven2 WAR Overlay 
Method" and build the first cas.war successfully. I can login with the 
user/user. The setting are: cas(3.5.1), mvn(3.0.4) and tomcat6.

Now I want to change to LDAP authentication following 
https://wiki.jasig.org/display/CASUM/LDAP. I added dependency 
cas-server-support-ldap in pom.xml and defined bean 
BindLdapAuthenticationHandler & ContextSource in deployerConfigContext.xml. 
Then mvn will generate some errors in file org.jasig.cas.WiringTests.txt:

...
...

Related cause:
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find clas
s [org.springframework.ldap.core.support.LdapContextSource] for bean with name '
contextSource' defined in URL [file:src/main/webapp/WEB-INF/deployerConfigContex
t.xml]; nested exception is java.lang.ClassNotFoundException: org.springframewor
k.ldap.core.support.LdapContextSource
...

Caused by: java.lang.ClassNotFoundException: 
org.springframework.ldap.core.support.LdapContextSource
...

I just copied a few errors here. Looks like it didn't find the Spring LDAP 
class. But how do I fix it? I have already added the cas-server-support-ldap in 
pom.xml.

Any idea?

Thanks,
Min
-- 
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