You need to find out where that class is located that can't be found. It's probably in a JAR that's needed in addition to the JDK. The system can't find com.sun.jndi.ldap.ctl.ResponseControlFactory . Fix the classpath issue by finding the software and making sure it's there.
David On 12/1/08, 陈灵敏 <[EMAIL PROTECTED]> wrote: > > Hi all > > I installed a Cas server successful, but when I tried to connect CAS to > OpenLDAP, I got the following error message, when I open the login > interface: > > -------------------------------------------------- > The Throwable encountered at context listener initialization was: > > 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 #1060478 ' 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#1060478 ' > 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.BeanCreationException: Error creating > bean > with name 'contextSource' defined in ServletContext resource > [/WEB-INF/deployerConfigContext.xml]: Instantiation of bean failed; nested > exception is java.lang.NoClassDefFoundError: > com.sun.jndi.ldap.ctl.ResponseControlFactory > The Throwable encountered at dispatcher servlet initialization was: > > 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#1060478' 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#1060478' 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.BeanCreationException: Error creating > bean > with name 'contextSource' defined in ServletContext resource > [/WEB-INF/deployerConfigContext .xml]: Instantiation of bean failed; nested > > exception is java.lang.NoClassDefFoundError: > com.sun.jndi.ldap.ctl.ResponseControlFactory > > --------------------------------------------------- > > As I configured my server forward > http://www.ja-sig.org/products/cas/server/ldapauthhandler/index.html . I > didn't find any information for applicationContext.xml configure. who can > tell me what's the problem? > > BTW: My testing environment is CAS 3.0.6. spring-ldap1.1.2 and > cas-server-ldap-3.0.6 are under WEB-INF/lib directory. > > > > > > > > > > > =============================================== > 快来和我一起享受TOM免费邮箱吧! > 看看除了1.5G,还有什么?<http://bjcgi.163.net/cgi-bin/newreg.cgi?%0Arf=050602> > =============================================== > _______________________________________________ > 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
