Just to expand on this thread since I just recently configured this, The only changes I had to add in my war overlay was the modified ticketRegistry.xml (from the wiki) and to place the ehcache-replicated.xml file within the WEB-INF/classes directory.
The maven dependency addition in your war overlay should be enough for your build to work. We are still testing if replication after restart actually works, so I'm interested in your testing with this. Run one server, log in. Turn another server on, then shutdown the first server, and try to SSO or hit the /cas/login screen again. -Michael. -----Original Message----- From: Dmitriy Kopylenko [mailto:[email protected]] Sent: Wednesday, April 03, 2013 11:41 AM To: [email protected] Subject: Re: [cas-user] EhCache Compilation Error No need to copy EhcacheTicketRegistry.java from the wiki into overlay as the latest CAS includes that class. Probably the wiki needs to be updated. Cheers, Dmitriy. On Apr 3, 2013, at 2:28 PM, Derek Lofstrom <[email protected]> wrote: > Trying to follow the instructions for implementing EhCacheTicketReg at: > https://wiki.jasig.org/display/CASUM/EhcacheTicketRegistry > > They don't sound terribly confusing, but I can't for the life of me get > things to work. Using overlay to build the project. Essentially, my steps are: > > 1) Include the ehcache-core and cas-server-integration-ehcache > dependencies to my custom pom.xml > 2) Replace ticketRegistry.xml with the file included in the wiki > 3) Copy EhcacheTicketRegistry.java and ehcache-replicated.xml from the > wiki to their respective locations > 4) Build via maven. > > When I do these steps exactly, I get the following compilation error: > > Failed to execute goal > org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile > (default-compile) on project cas-server-nesl: Compilation failure > [ERROR] > /opt/jasig-cas/cas-server-nesl-ehcache/src/main/java/org/jasig/cas/tic > ket/registry/EhcacheTicketRegistry.java:[36,7] > org.jasig.cas.ticket.registry.EhcacheTicketRegistry is not abstract > and does not override abstract method needsCallback() in > org.jasig.cas.ticket.registry.AbstractDistributedTicketRegistry > > I feel like I'm missing something terribly obvious here, but can't for > the life of me understand what (I'm not much of a developer). Of > course, I Google the error and get nothing, so I'm looking here for > help :) > > -Derek > -- > 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
