Hello,

I am having problems to link CAS to our AD environment. I followed the manual 
described at https://wiki.jasig.org/display/CASUM/LDAP but it doesn't work. 
Whenever I add the lines to the deployerConfigContext file and I restart Tomcat 
I get an 404 error in my browser. When I put the old deployerConfigContext file 
back it works again. In attachement I put the cas.log file. Can anybody tell me 
what I do wrong or give me the exact steps necessary to link cas to AD (ldap)?

Best regards,
Christophe Durand
-- 
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
2011-09-15 15:30:00,681 INFO 
[org.jasig.cas.util.AutowiringSchedulerFactoryBean] - Shutting down Quartz 
Scheduler
2011-09-15 15:30:06,233 INFO 
[org.jasig.cas.services.DefaultServicesManagerImpl] - Loaded 4 services.
2011-09-15 15:30:06,427 ERROR 
[org.jasig.cas.web.init.SafeContextLoaderListener] - SafeContextLoaderListener: 
The Spring ContextLoaderListener we wrap threw on contextInitialized.
But for our having caught this error, the web application context would not 
have initialized.
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'centralAuthenticationService' defined in ServletContext resource 
[/WEB-INF/spring-configuration/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#1872b29' of type 
[org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler] while setting bean 
property 'authenticationHandlers' with key [1]; nested exception is 
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find 
class [org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler] for bean with 
name 'org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler#1872b29' 
defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]; nested 
exception is java.lang.ClassNotFoundException: 
org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler
        at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
        at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
        at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
        at 
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
        at 
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
        at 
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
        at 
org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized_aroundBody0(SafeContextLoaderListener.java:62)
        at 
org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized_aroundBody1$advice(SafeContextLoaderListener.java:44)
        at 
org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized(SafeContextLoaderListener.java:1)
        at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
        at 
org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
        at 
org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)
Caused by: 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#1872b29' of type 
[org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler] while setting bean 
property 'authenticationHandlers' with key [1]; nested exception is 
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find 
class [org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler] for bean with 
name 'org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler#1872b29' 
defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]; nested 
exception is java.lang.ClassNotFoundException: 
org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler
        at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
        at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
        at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
        at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
        at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
        ... 26 more
Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: 
Cannot find class [org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler] 
for bean with name 
'org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler#1872b29' defined in 
ServletContext resource [/WEB-INF/deployerConfigContext.xml]; nested exception 
is java.lang.ClassNotFoundException: 
org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1250)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:433)
        at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270)
        ... 38 more
Caused by: java.lang.ClassNotFoundException: 
org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler
        at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678)
        at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1523)
        at org.springframework.util.ClassUtils.forName(ClassUtils.java:257)
        at 
org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:408)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1271)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1242)
        ... 40 more
2011-09-15 15:30:09,627 INFO 
[org.jasig.cas.services.DefaultServicesManagerImpl] - Loaded 4 services.
2011-09-15 15:30:09,811 WARN 
[org.jasig.cas.authentication.handler.support.SimpleTestUsernamePasswordAuthenticationHandler]
 - 
org.jasig.cas.authentication.handler.support.SimpleTestUsernamePasswordAuthenticationHandler
 is only to be used in a testing environment.  NEVER enable this in a 
production environment.
2011-09-15 15:30:11,098 INFO 
[org.jasig.cas.util.AutowiringSchedulerFactoryBean] - Starting Quartz Scheduler 
now
2011-09-15 15:30:14,624 INFO 
[org.jasig.cas.services.DefaultServicesManagerImpl] - Loaded 4 services.
2011-09-15 15:30:14,796 ERROR 
[org.jasig.cas.web.init.SafeContextLoaderListener] - SafeContextLoaderListener: 
The Spring ContextLoaderListener we wrap threw on contextInitialized.
But for our having caught this error, the web application context would not 
have initialized.
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'centralAuthenticationService' defined in ServletContext resource 
[/WEB-INF/spring-configuration/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#89cc1' of type 
[org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler] while setting bean 
property 'authenticationHandlers' with key [1]; nested exception is 
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find 
class [org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler] for bean with 
name 'org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler#89cc1' defined 
in ServletContext resource [/WEB-INF/deployerConfigContext.xml]; nested 
exception is java.lang.ClassNotFoundException: 
org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler
        at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
        at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
        at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
        at 
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
        at 
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
        at 
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
        at 
org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized_aroundBody0(SafeContextLoaderListener.java:62)
        at 
org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized_aroundBody1$advice(SafeContextLoaderListener.java:44)
        at 
org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized(SafeContextLoaderListener.java:1)
        at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
        at 
org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
        at 
org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)
Caused by: 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#89cc1' of type 
[org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler] while setting bean 
property 'authenticationHandlers' with key [1]; nested exception is 
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find 
class [org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler] for bean with 
name 'org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler#89cc1' defined 
in ServletContext resource [/WEB-INF/deployerConfigContext.xml]; nested 
exception is java.lang.ClassNotFoundException: 
org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler
        at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
        at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
        at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
        at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
        at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
        ... 26 more
Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: 
Cannot find class [org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler] 
for bean with name 
'org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler#89cc1' defined in 
ServletContext resource [/WEB-INF/deployerConfigContext.xml]; nested exception 
is java.lang.ClassNotFoundException: 
org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1250)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:433)
        at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270)
        ... 38 more
Caused by: java.lang.ClassNotFoundException: 
org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler
        at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678)
        at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1523)
        at org.springframework.util.ClassUtils.forName(ClassUtils.java:257)
        at 
org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:408)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1271)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1242)
        ... 40 more
2011-09-15 15:30:29,151 INFO 
[org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - 
Beginning ticket cleanup.
2011-09-15 15:30:29,152 INFO 
[org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - 0 
tickets found to be removed.
2011-09-15 15:30:29,152 INFO 
[org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - Finished 
ticket cleanup.

Reply via email to