CAS memcache issue 6.3.0-RCS

18 views
Skip to first unread message

john titmus

unread,
Oct 6, 2020, 6:49:52 PM10/6/20
to CAS Community
Hello,
I am trying to use multiple instances of cas in a docker environment
I am getting the cast exception error when I have more than 1 instance of cas running
java.lang.ClassCastException: class org.apereo.cas.services.DefaultRegisteredServiceProperty cannot be cast to class org.apereo.cas.ticket.Ticket (org.apereo.cas.services.DefaultRegisteredServiceProperty and org.apereo.cas.ticket.Ticket are in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @68217d41) at org.apereo.cas.ticket.registry.MemcachedTicketRegistry.getTicket(MemcachedTicketRegistry.java:96) ~[cas-server-support-memcached-ticket-registry-6.3.0-RC3.jar:6.3.0-RC3]

the cas.properties is configured with 
# memcached ticket registry and related settings
cas.ticket.registry.memcached.servers=10.5.84.66:11211
cas.ticket.st.timeToKillInSeconds=60
cas.ticket.tgt.timeToKillInSeconds=43200

and the build has these dependency's in it version being 6.3.0-RC3
implementation "org.apereo.cas:cas-server-support-memcached-ticket-registry:${casServerVersion}"
implementation "org.apereo.cas:cas-server-support-memcached-spy:${casServerVersion}"

this was working fine in 6.2 versions and am wondering if any config changes were made to the 6.3.0-RC3 version to make memcache work with multiple instances?

thanks
Reply all
Reply to author
Forward
0 new messages