LDAP Build Error

Ryan J. Peterson rjpetersonstudios at gmail.com
Thu Jan 11 11:02:53 EST 2007


Scott,

That fixed it, thanks for your help, thats one stress of my back.

Ryan:

> It looks like newer versions of Spring LDAP changed the property 
> name.  It should be anonymousReadOnly instead of authenticatedReadOnly
>
> -Scott
>
> On 1/11/07, *Ryan J. Peterson* <rjpetersonstudios at gmail.com 
> <mailto:rjpetersonstudios at gmail.com>> wrote:
>
>     Scott,
>
>     I added ldapbp-1.0.jar and that fixed that exception. Now I am
>     seeing this: http://ourgvinc02.iworldlink.com:8080/cas/login?null
>
>
>     --- ERRORS BELOW --
>
>
>         CAS is Unavailable
>
>     There was a fatal error initializing the CAS application context.
>     This is almost always because of an error in the Spring bean
>     configuration files. Are the files valid XML? Do the beans they
>     refer to all exist?
>
>     Before placing CAS in production, you should change this page to
>     present a UI appropriate for the case where the CAS web
>     application is fundamentally broken. Perhaps "Sorry, CAS is
>     currently unavailable." with some links to your user support
>     information.
>
>     The Throwable encountered at context listener initialization was:
>
>     org.springframework.beans.factory.BeanCreationException: Error
>     creating bean with name 'centralAuthenticationService' defined in
>     ServletContext resource [/WEB-INF/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.BindLdapAuthenticationHandler#57df5'
>     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.BindLdapAuthenticationHandler#57df5'
>     defined in ServletContext resource
>     [/WEB-INF/deployerConfigContext.xml]: Cannot resolve reference to
>     bean 'contextSource' while setting bean property 'contextSource';
>     nested exception is
>     org.springframework.beans.factory.BeanCreationException: Error
>     creating bean with name 'contextSource' defined in ServletContext
>     resource [/WEB-INF/deployerConfigContext.xml]: Error setting
>     property values; nested exception is
>     org.springframework.beans.NotWritablePropertyException: Invalid
>     property 'authenticatedReadOnly' of bean class
>     [org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource]:
>     Bean property 'authenticatedReadOnly' is not writable or has an
>     invalid setter method. Does the parameter type of the setter match
>     the return type of the getter?
>
>     The Throwable encountered at dispatcher servlet initialization was:
>
>     org.springframework.beans.factory.BeanCreationException: Error
>     creating bean with name 'centralAuthenticationService' defined in
>     ServletContext resource [/WEB-INF/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.BindLdapAuthenticationHandler#57df5'
>     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.BindLdapAuthenticationHandler#57df5'
>     defined in ServletContext resource
>     [/WEB-INF/deployerConfigContext.xml]: Cannot resolve reference to
>     bean 'contextSource' while setting bean property 'contextSource';
>     nested exception is
>     org.springframework.beans.factory.BeanCreationException: Error
>     creating bean with name 'contextSource' defined in ServletContext
>     resource [/WEB-INF/deployerConfigContext.xml]: Error setting
>     property values; nested exception is
>     org.springframework.beans.NotWritablePropertyException: Invalid
>     property 'authenticatedReadOnly' of bean class
>     [org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource]:
>     Bean property 'authenticatedReadOnly' is not writable or has an
>     invalid setter method. Does the parameter type of the setter match
>     the return type of the getter?
>
>
>>     What JVM are you using?  It looks like it can't find the LDAP
>>     class: com.sun.jndi.ldap.ctl.ResponseControlFactory
>>
>>     -Scott
>>
>>     On 1/10/07, *Ryan J. Peterson * <rjpetersonstudios at gmail.com
>>     <mailto:rjpetersonstudios at gmail.com>> wrote:
>>
>>         Copied into localPlugins/lib/
>>             cas-server-ldap-3.0.6.jar 
>>             ldaptemplate-1.0.2.jar
>>
>>         Changed deployerConfigContext.xml (attached)
>>
>>         get these errors
>>         http://ourgvinc02.iworldlink.com:8080/cas/login?null
>>
>>         --- ERRORS BELOW --
>>
>>
>>             CAS is Unavailable
>>
>>         There was a fatal error initializing the CAS application
>>         context. This is almost always because of an error in the
>>         Spring bean configuration files. Are the files valid XML? Do
>>         the beans they refer to all exist?
>>
>>         Before placing CAS in production, you should change this page
>>         to present a UI appropriate for the case where the CAS web
>>         application is fundamentally broken. Perhaps "Sorry, CAS is
>>         currently unavailable." with some links to your user support
>>         information.
>>
>>         The Throwable encountered at context listener initialization
>>         was:
>>
>>         org.springframework.beans.factory.BeanCreationException:
>>         Error creating bean with name 'centralAuthenticationService'
>>         defined in ServletContext resource
>>         [/WEB-INF/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.BindLdapAuthenticationHandler#1a544a5'
>>         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.BindLdapAuthenticationHandler#1a544a5'
>>         defined in ServletContext resource
>>         [/WEB-INF/deployerConfigContext.xml]: Cannot resolve
>>         reference to bean 'contextSource' while setting bean property
>>         'contextSource'; nested exception is
>>         org.springframework.beans.factory.BeanCreationException:
>>         Error creating bean with name 'contextSource' defined in
>>         ServletContext resource [/WEB-INF/deployerConfigContext.xml]:
>>         Instantiation of bean failed; nested exception is
>>         java.lang.NoClassDefFoundError:
>>         com.sun.jndi.ldap.ctl.ResponseControlFactory
>>
>>         The Throwable encountered at dispatcher servlet
>>         initialization was:
>>
>>         org.springframework.beans.factory.BeanCreationException:
>>         Error creating bean with name 'centralAuthenticationService'
>>         defined in ServletContext resource
>>         [/WEB-INF/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.BindLdapAuthenticationHandler#1a544a5'
>>         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.BindLdapAuthenticationHandler#1a544a5'
>>         defined in ServletContext resource
>>         [/WEB-INF/deployerConfigContext.xml]: Cannot resolve
>>         reference to bean 'contextSource' while setting bean property
>>         'contextSource'; nested exception is
>>         org.springframework.beans.factory.BeanCreationException:
>>         Error creating bean with name 'contextSource' defined in
>>         ServletContext resource [/WEB-INF/deployerConfigContext.xml]:
>>         Instantiation of bean failed; nested exception is
>>         java.lang.NoClassDefFoundError:
>>         com.sun.jndi.ldap.ctl.ResponseControlFactory
>>
>>
>>
>>         _______________________________________________
>>         Yale CAS mailing list
>>         cas at tp.its.yale.edu <mailto:cas at tp.its.yale.edu>
>>         http://tp.its.yale.edu/mailman/listinfo/cas
>>
>>
>>
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>Yale CAS mailing list
>>cas at tp.its.yale.edu <mailto:cas at tp.its.yale.edu>
>>http://tp.its.yale.edu/mailman/listinfo/cas
>>  
>>
>
>
>     _______________________________________________
>     Yale CAS mailing list
>     cas at tp.its.yale.edu <mailto:cas at tp.its.yale.edu>
>     http://tp.its.yale.edu/mailman/listinfo/cas
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Yale CAS mailing list
>cas at tp.its.yale.edu
>http://tp.its.yale.edu/mailman/listinfo/cas
>  
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20070111/8bc6bb4a/attachment.html


More information about the cas mailing list