Hi Geoffrey! Most likely it's because of missing parent="abstractTicketCache" in the definition of bean ticketGrantingTicketCache. Try adding it there, like it is for serviceTicketCache.
I know it was missing in the on-line documentation but should be already fixed. Best Regards, Jarda From: Whittaker, Geoffrey [mailto:[email protected]] Sent: 6. November 2014 8:32 odp. To: [email protected] Subject: [cas-user] EhCache Registry Exception I'm implementing the EhCache Ticket registry and I'm noticing something odd in my logs. Specifically, I'm seen that the TGT cache manager is different from the ST cache manager. I believe my config should make them the same. I've included my logs and config below. 2014-11-06 14:19:14,366 DEBUG [org.jasig.cas.ticket.registry.EhCacheTicketRegistry] - serviceTicketsCache.maxElementsInMemory=10000 2014-11-06 14:19:14,366 DEBUG [org.jasig.cas.ticket.registry.EhCacheTicketRegistry] - serviceTicketsCache.maxElementsOnDisk=0 2014-11-06 14:19:14,366 DEBUG [org.jasig.cas.ticket.registry.EhCacheTicketRegistry] - serviceTicketsCache.isOverflowToDisk=false 2014-11-06 14:19:14,366 DEBUG [org.jasig.cas.ticket.registry.EhCacheTicketRegistry] - serviceTicketsCache.timeToLive=300 2014-11-06 14:19:14,366 DEBUG [org.jasig.cas.ticket.registry.EhCacheTicketRegistry] - serviceTicketsCache.timeToIdle=0 2014-11-06 14:19:14,366 DEBUG [org.jasig.cas.ticket.registry.EhCacheTicketRegistry] - serviceTicketsCache.cacheManager=ticketRegistryCacheManager 2014-11-06 14:19:14,366 DEBUG [org.jasig.cas.ticket.registry.EhCacheTicketRegistry] - ticketGrantingTicketsCache.maxElementsInMemory=10000 2014-11-06 14:19:14,366 DEBUG [org.jasig.cas.ticket.registry.EhCacheTicketRegistry] - ticketGrantingTicketsCache.maxElementsOnDisk=10000000 2014-11-06 14:19:14,366 DEBUG [org.jasig.cas.ticket.registry.EhCacheTicketRegistry] - ticketGrantingTicketsCache.isOverflowToDisk=true 2014-11-06 14:19:14,366 DEBUG [org.jasig.cas.ticket.registry.EhCacheTicketRegistry] - ticketGrantingTicketsCache.timeToLive=0 2014-11-06 14:19:14,366 DEBUG [org.jasig.cas.ticket.registry.EhCacheTicketRegistry] - ticketGrantingTicketsCache.timeToIdle=7201 2014-11-06 14:19:14,366 DEBUG [org.jasig.cas.ticket.registry.EhCacheTicketRegistry] - ticketGrantingTicketsCache.cacheManager=__DEFAULT__ <-- Why is this not the same as for the service tickets? Contents of TicketRegistry.xml <bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"> <property name="configLocation" value="file:C:\Program Files\cas-server-4.0.0\Log4jXMLs\ehcache-replicated.xml" /> <property name="shared" value="false" /> <property name="cacheManagerName" value="ticketRegistryCacheManager" /> </bean> <bean id="ticketRegistry" class="org.jasig.cas.ticket.registry.EhCacheTicketRegistry" p:serviceTicketsCache-ref="serviceTicketsCache" p:ticketGrantingTicketsCache-ref="ticketGrantingTicketsCache" /> <bean id="abstractTicketCache" class="org.springframework.cache.ehcache.EhCacheFactoryBean" abstract="true"> <property name="cacheManager" ref="cacheManager" /> <property name="diskExpiryThreadIntervalSeconds" value="0" /> <property name="diskPersistent" value="false" /> <property name="eternal" value="false" /> <property name="maxElementsInMemory" value="10000" /> <property name="maxElementsOnDisk" value="0" /> <property name="memoryStoreEvictionPolicy" value="LRU" /> <property name="overflowToDisk" value="false" /> <property name="bootstrapCacheLoader"> <ref local="ticketCacheBootstrapCacheLoader" /> </property> </bean> <bean id="serviceTicketsCache" class="org.springframework.cache.ehcache.EhCacheFactoryBean" parent="abstractTicketCache"> <property name="cacheName" value="org.jasig.cas.ticket.ServiceTicket" /> <property name="cacheEventListeners"> <ref local="ticketRMISynchronousCacheReplicator" /> </property> <property name="timeToIdle" value="0" /> <property name="timeToLive" value="300" /> </bean> <bean id="ticketGrantingTicketsCache" class="org.springframework.cache.ehcache.EhCacheFactoryBean"> <property name="cacheName" value="org.jasig.cas.ticket.TicketGrantingTicket" /> <property name="cacheEventListeners"> <ref local="ticketRMIAsynchronousCacheReplicator" /> </property> <property name="timeToIdle" value="7201" /> <property name="timeToLive" value="0" /> </bean> <bean id="ticketRMISynchronousCacheReplicator" class="net.sf.ehcache.distribution.RMISynchronousCacheReplicator"> <constructor-arg name="replicatePuts" value="true" /> <constructor-arg name="replicatePutsViaCopy" value="true" /> <constructor-arg name="replicateUpdates" value="true" /> <constructor-arg name="replicateUpdatesViaCopy" value="true" /> <constructor-arg name="replicateRemovals" value="true" /> </bean> <bean id="ticketRMIAsynchronousCacheReplicator" class="net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator" parent="ticketRMISynchronousCacheReplicator"> <constructor-arg name="replicationInterval" value="10000" /> <constructor-arg name="maximumBatchSize" value="100" /> </bean> <bean id="ticketCacheBootstrapCacheLoader" class="net.sf.ehcache.distribution.RMIBootstrapCacheLoader"> <constructor-arg name="asynchronous" value="true" /> <constructor-arg name="maximumChunkSize" value="5000000" /> </bean> -- You are currently subscribed to [email protected]<mailto:[email protected]> as: [email protected]<mailto:[email protected]> To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user Join IDC beginning October 29, 2014 through January 29, 2015 for: IDC's 2015 Predictions and IDC FutureScapes Web Conference Series<www.idc.com/predictions2015> Accelerating Innovation on the 3rd Platform Register Now<http://event.on24.com/r.htm?e=861361&s=1&k=223AFC21785863D975C9D80CEE2A97C2> -- 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
