Following these instructions: https://wiki.jasig.org/display/CASUM/Configuring

<bean id="userDetailsService" 
class="org.acegisecurity.userdetails.memory.InMemoryDaoImpl">
        <property name="userMap">
               <value>
              username=notused,ROLE_ADMIN
            </value>
        </property>
</bean>
I got a Class not found error on 
org.acegisecurity.userdetails.memory.InMemoryDaoImpl

So I add the following to my overlay pom.xml:

<repository>
            <id>acegi</id>
            <name>Acegi Maven2 Repository</name>
            
<url>http://mirrors.ibiblio.org/pub/mirrors/maven2/org/acegisecurity/acegi-security-cas</url>
        </repository>

<dependency>
            <groupId>org.acegisecurity</groupId>
            <artifactId>acegi-security-cas</artifactId>
            <version>1.0.7</version>
        </dependency>

And now I get this:


org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'org.springframework.security.authenticatio
n.ProviderManager#0': Cannot create inner bean '(inner bean)' of type 
[org.springframework.security.config.authentication.Authenti
cationManagerFactoryBean] while setting bean property 'parent'; nested 
exception is org.springframework.beans.factory.BeanCreation
Exception: Error creating bean with name '(inner bean)': FactoryBean threw 
exception on object creation; nested exception is org.s
pringframework.beans.factory.BeanCreationException: Error creating bean with 
name 'org.springframework.security.authenticationMana
ger': Cannot resolve reference to bean 'casAuthenticationProvider' while 
setting bean property 'providers' with key [0]; nested ex
ception is org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'casAuthenticationProvider' defi
ned in ServletContext resource 
[/WEB-INF/spring-configuration/securityContext.xml]: Initialization of bean 
failed; nested exceptio
n is org.springframework.beans.ConversionNotSupportedException: Failed to 
convert property value of type 'org.acegisecurity.userde
tails.memory.InMemoryDaoImpl' to required type 
'org.springframework.security.core.userdetails.UserDetailsService' for property 
'us
erDetailsService'; nested exception is java.lang.IllegalStateException: Cannot 
convert value of type [org.acegisecurity.userdetail
s.memory.InMemoryDaoImpl] to required type 
[org.springframework.security.core.userdetails.UserDetailsService] for property 
'userDe
tailsService': no matching editors or conversion strategy found

I am stumped again.

Bryan Wooten

[email protected]
Work: 801.585.9323
Cell: 801.414.3593


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