Thanks, I will take a look at this. Is there any examples of a deployerConfigContext.xml that uses the ResourceCRLRevocationChecker? I guess that is my question. I am not sure how to set up the configuration to tell the X509CredentialsAuthenticationHandler how to connect up and use the ResourceCRLRevocationChecker? Any advice or examples would be great.
Schawn ________________________________ From: Scott Battaglia <[email protected]> To: [email protected] Sent: Tuesday, February 19, 2013 12:18 PM Subject: Re: [cas-user] start up error with ehcache while configuring for CRLChecker You're attempting to configure this: https://github.com/Jasig/cas/blob/master/cas-server-support-x509/src/main/java/org/jasig/cas/adaptors/x509/authentication/handler/support/ResourceCRLRevocationChecker.java which is not defined in the example deployerConfigContext.xml that you gave. Basically you're applying configuration for one class to another. You're passing the constructor a Cache when it wants a Resource. On Tue, Feb 19, 2013 at 11:37 AM, Schawn E. Thropp <[email protected]> wrote: Anyone have any thoughts on what would be causing this error? > > > >________________________________ > From: Schawn E. Thropp <[email protected]> >To: [email protected] >Sent: Friday, February 15, 2013 3:42 PM >Subject: [cas-user] start up error with ehcache while configuring for >CRLChecker > > >I received the following error when I started up my Tomcat instance when >trying to work the following example: >https://github.com/Jasig/cas/blob/master/cas-server-support-x509/src/main/resources/deployerConfigContext.xml > > >The Spring ContextLoaderListener we wrap threw on contextInitialized. >But for our having caught this error, the web application context would not >have initialized. >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.x509.authentication.handler.support.X509CredentialsAuthenticationHandler#78688954' > of type >[org.jasig.cas.adaptors.x509.authentication.handler.support.X509CredentialsAuthenticationHandler] > while setting bean property 'authenticationHandlers' with key [2]; nested >exception is org.springframework.beans.factory.BeanCreationException: Error >creating bean with name 'org.jasig.cas.adaptors.x509.authentication.handler.support.X509CredentialsAuthenticationHandler#78688954' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]: Cannot create inner bean 'org.jasig.cas.adaptors.x509.authentication.handler.support.ResourceCRLRevocationChecker#604788d5' of type [org.jasig.cas.adaptors.x509.authentication.handler.support.ResourceCRLRevocationChecker] while setting bean property 'revocationChecker'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.jasig.cas.adaptors.x509.authentication.handler.support.ResourceCRLRevocationChecker#604788d5' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.springframework.core.io.Resource[]]: Could not convert constructor argument value of type [net.sf.ehcache.Cache] to required type [[Lorg.springframework.core.io.Resource;]: Failed to convert value of type 'net.sf.ehcache.Cache' to required type 'org.springframework.core.io.Resource[]'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [net.sf.ehcache.Cache] to required type [org.springframework.core.io.Resource]: PropertyEditor [org.springframework.core.io.ResourceEditor] returned inappropriate value >Related cause: >org.springframework.beans.factory.UnsatisfiedDependencyException: Error >creating bean with name >'org.jasig.cas.adaptors.x509.authentication.handler.support.ResourceCRLRevocationChecker#604788d5' > defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]: >Unsatisfied dependency expressed through constructor argument with index 0 of >type [org.springframework.core.io.Resource]: Could not convert constructor >argument value of type [net.sf.ehcache.Cache] to required type >[org.springframework.core.io.Resource]: Failed to convert value of type >'net.sf.ehcache.Cache' to required type >'org.springframework.core.io.Resource'; nested exception is >java.lang.IllegalArgumentException: Cannot convert value of type >[net.sf.ehcache.Cache] to required type >[org.springframework.core.io.Resource]: PropertyEditor >[org.springframework.core.io.ResourceEditor] returned inappropriate value > at >org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328) >.... > > > > >Anyone have any idea what is causing this? > > >-- >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 -- 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
