Looking at the Java doc for DefaultPasswordEncoder.

http://developer.jasig.org/projects/cas/cas-server-core/cas-server/cas-server-core/apidocs/org/jasig/cas/authentication/handler/DefaultPasswordEncoder.html

I doesn't seem to contain any characterEncoding property.

Try removing the characterEncoding propertly

James Parry
Senior Software Engineer

MegaNexus Limited

From: Stein, Eric [mailto:[email protected]]
Sent: 06 September 2012 14:53
To: [email protected]
Subject: [cas-user] Using DefaultPasswordEncoder with 
QueryDatabaseAuthenticationHandler


Hi,

  I'm trying to use a QueryDatabaseAuthenticationHandler to access passwords in 
my database. The passwords are MD5-hashed, so I figured I needed to use a 
DefaultPasswordEncoder. Based on what I've seen on the web, I made changes to 
my pom.xml and deployerConfigContext.xml files. When I try to start up the 
application, I'm now seeing this error:



Caused by: org.springframework.beans.BeanInstantiationException: Could not 
instantiate bean class 
[org.jasig.cas.authentication.handler.DefaultPasswordEncoder]: No default 
constructor found; nested exception is java.lang.NoSuchMethodException: 
org.jasig.cas.authentication.handler.DefaultPasswordEncoder.<init>()

                at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:72)

                at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:990)

                ... 67 more

Caused by: java.lang.NoSuchMethodException: 
org.jasig.cas.authentication.handler.DefaultPasswordEncoder.<init>()

                at java.lang.Class.getConstructor0(Class.java:2706)

                at java.lang.Class.getDeclaredConstructor(Class.java:1985)

                at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:67)

                ... 68 more



What am I missing? Do I need another dependency in my POM?



Thanks,
Eric





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