Greetings, I've been using memcache/repcache for our CAS servers, but wanted to try out ehcache since it looked like a better alternative. If I'm going down the wrong path, please let me know. :)
I followed the directions on https://wiki.jasig.org/display/CASUM/EhcacheTicketRegistry and got something working, but it doesn't seem to replicate. After a log in on one node, I get the following error.. 2013-01-04 22:11:54,904 ERROR [net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator] - <Exception on flushing of replication queue: null. Continuing...> java.lang.NullPointerException at net.sf.ehcache.distribution.RMISynchronousCacheReplicator.listRemoteCachePeers(RMISynchronousCacheReplicator.java:335) at net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator.writeReplicationQueue(RMIAsynchronousCacheReplicator.java:312) at net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator.replicationThreadMain(RMIAsynchronousCacheReplicator.java:127) at net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator.access$000(RMIAsynchronousCacheReplicator.java:58) at net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator$ReplicationThread.run(RMIAsynchronousCacheReplicator.java:389) I'm using the ehcache-replicated.xml file from.. https://github.com/Jasig/cas/blob/master/cas-server-integration-ehcache/src/test/resources/ehcache-replicated.xml I was using tcpdump to watch the traffic between nodes when logging in. I only saw traffic when I removed "remoteObjectPort=41002" from the Listener section. But even then I wasn't able to validate a service ticket from the other server after logging in. Something else that seemed odd was that I only saw one file in /tmp/tomcat7-tomcat7-tmp.. org%002ejasig%002ecas%002eticket%002e%0054icket%0047ranting%0054icket.data I would've expected to find a data file for the service tickets as well. That file does grow from a zero size to a couple bytes after logging in. I imagine that file would grow on the other node as tickets are replicated, right? I have checked what I believe are the obvious problems after reading the mailing list. All traffic between servers is allowed and both servers have ntp running. Does anyone else familiar with ehcache have some pointers? I'm running CAS 3.5.1 with openjdk-7-jdk and Tomcat 7 on Ubuntu 12.04. I can reply with some of the config files or my pom.xml if needed. Thanks, Pat -- 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
