You have to add a member variable to the class MyBindLdapAuthenticationHandler called cryptype. If this is not a member variable and (very important) you dont have a setCryptype(Type mytype) method, it's not going to work.
I expect that's your issue. You can't add an arbitrary property without having the facility to use it in the class. Spring provides a way to instance the class. The Spring specification needs to match the class specification. David On 11/3/08, wadii <[EMAIL PROTECTED]> wrote: > > Hello, > > I want to add a new property to my authentification handler I define a new > variable with get and set fonctions and in deployerConfigContex.xml > > <bean > class="org.jasig.cas.adaptors.ldap.MyBindLdapAuthenticationHandler"> > <property name="filter" value="uid=%u" /> > > <property name="searchBase" > value="ou=Users,ou=Extranet,dc=devel-atih,dc=sante,dc=fr" /> > <property name="scope" value="2" /> > <property name="cryptype" value="0" /> > <property name="contextSource" ref="contextSource" /> > </bean> > > > I can not deploy my cas server and get this exception: > > org.springframework.beans.factory.BeanCreationException: Error creating > bean with name 'centralAuthenticationService' defined in ServletContext > resource [/WEB-INF/spring-configuration/applicationContext.xml]: Cannot > resolve reference to bean 'authenticationManager' while setting bean > property 'authenticationManager'; nested exception is > org.springframework.beans.factory.BeanCreationException: Error creating bean > with name 'authenticationManager' defined in ServletContext resource > [/WEB-INF/deployerConfigContext.xml]: Cannot create inner bean > 'org.jasig.cas.adaptors.ldap.EpmsiBindLdapAuthenticationHandler#34bb22' of > type [org.jasig.cas.adaptors.ldap.EpmsiBindLdapAuthenticationHandler] while > setting bean property 'authenticationHandlers' with key [1]; nested > exception is org.springframework.beans.factory.BeanCreationException: Error > creating bean with name > 'org.jasig.cas.adaptors.ldap.EpmsiBindLdapAuthenticationHandler#34bb22' > defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]: > Initialization of bean failed; nested exception is > org.springframework.beans.InvalidPropertyException: Invalid property > 'cryptype' of bean class > [org.jasig.cas.adaptors.ldap.EpmsiBindLdapAuthenticationHandler]: No > property 'cryptype' found > > > Any idea? > > regards. > > > Wadii > > > > > _______________________________________________ > Yale CAS mailing list > [email protected] > http://tp.its.yale.edu/mailman/listinfo/cas > >
_______________________________________________ Yale CAS mailing list [email protected] http://tp.its.yale.edu/mailman/listinfo/cas
