Can org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource be customized/over layed?

Sam Karl samckarl at gmail.com
Fri Mar 7 11:19:48 EST 2008


I have a situation to have a customized exception thrown while catching
NamingException in AuthenticatedLdapContextSource!! But it didn't seem like
it can be overlaid so I renamed the file and package and customized the
deployerConfigContext.xml entry as follows.

<bean id="contextSource" class="
my.test.cas.adaptors.ldap.util.AuthenticatedLdapContextSourceOID">

but I'm getting the following exception

*org.springframework.beans.TypeMismatchException: Failed to convert property
value of type [
my.test.cas.adaptors.ldap.util.AuthenticatedLdapContextSourceOID] to
required type [
org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource] for
property 'contextSource';

nested exception is java.lang.IllegalArgumentException: Cannot convert value
of type [com.cerner.cas.adaptors.ldap.util.AuthenticatedLdapContextSourceOID]
to required type [
org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource] for
property 'contextSource':
no matching editors or conversion strategy found

Caused by: java.lang.IllegalArgumentException: Cannot convert value of type
[com.cerner.cas.adaptors.ldap.util.AuthenticatedLdapContextSourceOID] to
required type [
org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource] for
property 'contextSource':
no matching editors or conversion strategy found

*Could you help me in this.

Is the contextSource customizable? If yes, what part did I do wrong or
missing?
If no, is there ways around it.

Thanks for your help!

Sam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20080307/201d6bb3/attachment.html 


More information about the cas mailing list