You were correct the first time.  Newer versions of CAS use the latest
version of Spring Security which changed its package structure to
org.springframework.security

You should look for the actual exception thrown to determine what happened.

-Scott

-Scott Battaglia
PGP Public Key Id: 0x383733AA
LinkedIn: http://www.linkedin.com/in/scottbattaglia


On Tue, Apr 14, 2009 at 1:03 PM, Ashima <[email protected]> wrote:

> I am trying to configure Services Management and following the manual at
> http://www.ja-sig.org/wiki/display/CASUM/Configuring
>
> I made changes according to first 7 steps and deployed cas.war, it got
> successfully deployed but when I tried to access https://host:cas/services
> it gave me 'Authentication Faliure' error.
>
> So I made changes suggest in 'Securing the Services Management Application'
> block of the tutorial and changed:-
>
> <bean id="userDetailsService"
> class="org.springframework.security.userdetails.memory.InMemoryDaoImpl">
>                <property name="userMap">
>                        <value>
>                                agoel=notused,ROLE_ADMIN
>                    </value>
>                </property>
> </bean>
>
>
> To:-
>
>
>
> <bean id="userDetailsService"
> class="org.acegisecurity.userdetails.memory.InMemoryDaoImpl">
>                <property name="userMap">
>                        <value>
>                      agoel=notused,ROLE_ADMIN
>                    </value>
>                </property>
> </bean>
>
>
> and then when I deployed cas.war it is giving following error:-
>
>
> ERROR [org.springframework.web.context.ContextLoader] - <Context
> initialization failed>
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name '_authenticationManager': Cannot resolve reference to bean
> 'casAuthent
> icationProvider' while setting bean property 'providers' with key [0];
> nested exception is org.springframework.beans.factory.BeanCreationException:
> Error cre
> ating bean with name 'casAuthenticationProvider' defined in ServletContext
> resource [/WEB-INF/spring-configuration/securityContext.xml]: Cannot resolve
> refer
> ence to bean 'userDetailsService' while setting bean property
> 'userDetailsService'; nested exception is
> org.springframework.beans.factory.CannotLoadBeanClass
> Exception: Cannot find class
> [org.acegisecurity.userdetails.memory.InMemoryDaoImpl] for bean with name
> 'userDetailsService' defined in ServletContext resourc
> e [/WEB-INF/deployerConfigContext.xml]; nested exception is
> java.lang.ClassNotFoundException:
> org.acegisecurity.userdetails.memory.InMemoryDaoImpl
>
>
> I see that it is not able to find class
> 'org.acegisecurity.userdetails.memory.InMemoryDaoImpl' but I dont understand
> what change to make to make it work.
>
>
> Thanks
> Ashima
>
>
>
> --
> 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
>

-- 
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