Your exception is that you are trying to convert an org.jasig.cas.AuthenticationManager to a org.acegisecurity.AuthenticationManager and they're not the same class.

Its important to note however, that if you're looking at JA-SIG CAS 3.0.x (current version 3.0.4), the CAS adapter is not something you would want to use. CAS 3.0 uses Spring so the CasHandlerProxy is not needed. You also can't use the CasPasswordHandler itself without using the Legacy Adaptor that comes with CAS 3. If there's interest I can write an AuthenticationHandler that delegates to an Acegi AuthenticationManager similar to what the current CAS adapter does.

-Scott

Scott Battaglia
Application Developer, Architecture & Engineering Team
Enterprise Systems and Services, Rutgers University
v: 732.445.0097 | f: 732.445.5493 | [EMAIL PROTECTED]


Per Ejeklint wrote:
Following the CAS server installation in the documentation, I get the following error and don't know how to continue. All help is appreciated!

12:13:58,910 ERROR [ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'casPasswordHandler' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.TypeMismatchException: Failed to convert property value of type [org.jasig.cas.authentication.AuthenticationManagerImpl] to required type [org.acegisecurity.AuthenticationManager] for property 'authenticationManager']
PropertyAccessExceptionsException (1 errors)
org.springframework.beans.TypeMismatchException: Failed to convert property value of type [org.jasig.cas.authentication.AuthenticationManagerImpl] to required type [org.acegisecurity.AuthenticationManager] for property 'authenticationManager'

My applicationContext.xml has these bean definitions:

<bean id="inMemoryDaoImpl" class="org.acegisecurity.userdetails.memory.InMemoryDaoImpl">
<property name="userMap">
<value>
super=super,ROLE_ARE_IGNORED_BY_CAS
admin=admin,ROLE_ARE_IGNORED_BY_CAS
staff=staff,ROLE_ARE_IGNORED_BY_CAS
private=private,ROLE_ARE_IGNORED_BY_CAS
booking=booking,ROLE_ARE_IGNORED_BY_CAS
</value>
</property>
</bean>
<bean id="daoAuthenticationProvider" class="org.acegisecurity.providers.dao.DaoAuthenticationProvider"> <property name="userDetailsService"><ref local="inMemoryDaoImpl"/></property>
</bean>
<bean id="authenticationManager" class="org.acegisecurity.providers.ProviderManager">
<property name="providers">
<list>
<ref local="daoAuthenticationProvider"/>
</list>
</property>
</bean>
<bean id="casPasswordHandler" class="org.acegisecurity.adapters.cas.CasPasswordHandler"> <property name="authenticationManager"><ref bean="authenticationManager"/></property>
</bean>
Any ideas?

/Per

<|>

Per Ejeklint
Mobile: +46 (0)70-5090052
Web: http://www.ejeklint.se
Skype: callto://ejeklint





-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer

Reply via email to