Ray, Thanks for that suggestion. I tried cas.ticket.registry.ehcache.configLocation=classpath:/ehcache-replicated.xml With the file at src/main/resources/ehcache-replicated.xml I can see it ends up in the deployed war cas/WEB-INF/classes/ehcache-replicated.xml But it wasn’t being processed by tomcat 2018-02-20 14:10:24,589 WARN [net.sf.ehcache.config.ConfigurationFactory] - <No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: file:yyyyy/webapps/cas/WEB-INF/classes/ehcache-failsafe.xml>
I was following a generic ehcache guide and ended up naming the file ehcache.xml and without changing the configLocation varible to match, the file was loaded. It feels like changing cas.properties has zero effect on some things. Bottom line though, it works now. Thanks, Jeremiah From: [email protected] [mailto:[email protected]] On Behalf Of Ray Bon Sent: Tuesday, February 20, 2018 12:58 PM To: [email protected] Subject: Re: [cas-user] Values in cas.properties not taking effect Jeremiah, You could try putting ehcache-replicated.xml in src/main/resources. It will end up in the the classpath. If the classpath is the default search location, you can remove the property cas.ticket.registry.ehcache.configLocation or set it to 'classpath:/ehcache-replicated.xml'. If you want to keep it in /etc/cas/..., try adding a couple extra '/', 'file:///etc/cas/...' Ray On Tue, 2018-02-20 at 16:33 +0000, SCHILENS, JEREMIAH wrote: Ray, This is what I have in my cas.properties now for ehcache. I couldn’t figure out where classpath actually referenced so I tried the absolute file path. cas.ticket.registry.ehcache.replicateUpdatesViaCopy=true cas.ticket.registry.ehcache.cacheManagerName=ticketRegistryCacheManager cas.ticket.registry.ehcache.replicatePuts=true cas.ticket.registry.ehcache.replicateUpdates=true cas.ticket.registry.ehcache.memoryStoreEvictionPolicy=LRU cas.ticket.registry.ehcache.configLocation=file:/etc/cas/config/ehcache-replicated.xml cas.ticket.registry.ehcache.maximumBatchSize=100 cas.ticket.registry.ehcache.shared=false and in /etc/cas/config/ehcache-replicated.xml <ehcache name="ehCacheTicketRegistryCache" updateCheck="false" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ehcache.org/ehcache.xsd"> <diskStore path="java.io.tmpdir/cas"/> <!-- Automatic Peer Discovery --> <cacheManagerPeerProviderFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory" properties="peerDiscovery=automatic, multicastGroupAddress=230.0.0.1, multicastGroupPort=4446, timeToLive=32" propertySeparator="," /> <cacheManagerPeerListenerFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory" properties="peerDiscovery=automatic, multicastGroupAddress=230.0.0.1, multicastGroupPort=4446, timeToLive=32" propertySeparator="," /> </ehcache> Thanks, Jeremiah From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Ray Bon Sent: Friday, February 16, 2018 4:15 PM To: [email protected]<mailto:[email protected]> Subject: Re: [cas-user] Values in cas.properties not taking effect Jeremiah, You could put the settings in cas.properties as per https://apereo.github.io/cas/5.2.x/installation/Ehcache-Ticket-Registry.html<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapereo.github.io%2Fcas%2F5.2.x%2Finstallation%2FEhcache-Ticket-Registry.html&data=01%7C01%7Cjschilen%40kent.edu%7C5885ff9572724b319be108d5758266a4%7Ce5a06f4a1ec44d018f73e7dd15f26134%7C1&sdata=CgMrCXSGEXaunRjNf1Lg1rCsnShTjn4YKkr%2BUQQMS24%3D&reserved=0> Ray On Fri, 2018-02-16 at 20:25 +0000, SCHILENS, JEREMIAH wrote: Hello, I seem to be having some trouble with changes I make in cas.properties taking effect when I build the overlay. I’m trying to setup an ehcache and when I specify: cas.ticket.registry.ehcache.configLocation: file:/etc/cas/config/ehcache-replicated.xml I see this in the catalina.out of tomcat: 2018-02-16 14:42:40,922 WARN [net.sf.ehcache.config.ConfigurationFactory] - <No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:…./webapps/cas/WEB-INF/lib/ehcache-2.10.4.jar!/ehcache-failsafe.xml> I can confirm that /etc/cas/config/ehcache-replicated.xml exists, has the content I want, and is owned and readable by the user running tomcat. I had a similar problem with the log4j2.xml in the cas-management app and worked around it by putting the log4j2.xml file in src/main/webapp/WEB-INF/classes. I’ve tried the same here but it doesn’t work. What am I not doing correctly with the overlay? Thank you, Jeremiah -- Ray Bon Programmer analyst Development Services, University Systems 2507218831 | CLE 019 | [email protected]<mailto:[email protected]> -- - Website: https://apereo.github.io/cas<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapereo.github.io%2Fcas&data=01%7C01%7Cjschilen%40kent.edu%7C5885ff9572724b319be108d5758266a4%7Ce5a06f4a1ec44d018f73e7dd15f26134%7C1&sdata=0guaGSbT7R%2BQvT%2F%2BKG2amsJ0vZYN1f7iD%2BJTwhzrwQM%3D&reserved=0> - Gitter Chatroom: https://gitter.im/apereo/cas<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitter.im%2Fapereo%2Fcas&data=01%7C01%7Cjschilen%40kent.edu%7C5885ff9572724b319be108d5758266a4%7Ce5a06f4a1ec44d018f73e7dd15f26134%7C1&sdata=s%2FLqCwL5FMef6zjp6uKTU07JO0NGZYCcd76eVz8kiA8%3D&reserved=0> - List Guidelines: https://goo.gl/1VRrw7<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgoo.gl%2F1VRrw7&data=01%7C01%7Cjschilen%40kent.edu%7C5885ff9572724b319be108d5758266a4%7Ce5a06f4a1ec44d018f73e7dd15f26134%7C1&sdata=duqyKSjx0i0m7ele57BC5aBNl0YTvAnhlH4WaKj2z6k%3D&reserved=0> - Contributions: https://goo.gl/mh7qDG<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgoo.gl%2Fmh7qDG&data=01%7C01%7Cjschilen%40kent.edu%7C5885ff9572724b319be108d5758266a4%7Ce5a06f4a1ec44d018f73e7dd15f26134%7C1&sdata=d8VVVHpEZy%2FIwRPDtzKFIsvuTO8YMtzxjGM%2FCcyoDlQ%3D&reserved=0> --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/1518815719.1763.37.camel%40uvic.ca<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fa%2Fapereo.org%2Fd%2Fmsgid%2Fcas-user%2F1518815719.1763.37.camel%2540uvic.ca%3Futm_medium%3Demail%26utm_source%3Dfooter&data=01%7C01%7Cjschilen%40kent.edu%7C5885ff9572724b319be108d5758266a4%7Ce5a06f4a1ec44d018f73e7dd15f26134%7C1&sdata=%2BzF5Jn6n5Koa%2FA2oWIYH4ovkLL%2F4iFkmfkJ1%2B5N%2FIvw%3D&reserved=0>. -- Ray Bon Programmer analyst Development Services, University Systems 2507218831 | CLE 019 | [email protected]<mailto:[email protected]> -- - Website: https://apereo.github.io/cas<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapereo.github.io%2Fcas&data=01%7C01%7Cjschilen%40kent.edu%7C7b9b53bed6e343cafdf508d5788b7683%7Ce5a06f4a1ec44d018f73e7dd15f26134%7C1&sdata=%2F%2BtTcCtCqR%2Fr%2B0qQcnagdwDTlrtbWLFda70vdoFKIBU%3D&reserved=0> - Gitter Chatroom: https://gitter.im/apereo/cas<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitter.im%2Fapereo%2Fcas&data=01%7C01%7Cjschilen%40kent.edu%7C7b9b53bed6e343cafdf508d5788b7683%7Ce5a06f4a1ec44d018f73e7dd15f26134%7C1&sdata=SWdEBHdoXnjP%2FHw5Oc1d8dLayI7df0eyDBGMsKwJICw%3D&reserved=0> - List Guidelines: https://goo.gl/1VRrw7<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgoo.gl%2F1VRrw7&data=01%7C01%7Cjschilen%40kent.edu%7C7b9b53bed6e343cafdf508d5788b7683%7Ce5a06f4a1ec44d018f73e7dd15f26134%7C1&sdata=WBVcjrKkuzx3z3VIoGU6QlP9OEUMpkU3X2fwzIV7psU%3D&reserved=0> - Contributions: https://goo.gl/mh7qDG<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgoo.gl%2Fmh7qDG&data=01%7C01%7Cjschilen%40kent.edu%7C7b9b53bed6e343cafdf508d5788b7683%7Ce5a06f4a1ec44d018f73e7dd15f26134%7C1&sdata=qyfvXLWISLOy25ylYrezL8vLfJvFPtvQOR9LzoLInQI%3D&reserved=0> --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/1519149462.1765.52.camel%40uvic.ca<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fa%2Fapereo.org%2Fd%2Fmsgid%2Fcas-user%2F1519149462.1765.52.camel%2540uvic.ca%3Futm_medium%3Demail%26utm_source%3Dfooter&data=01%7C01%7Cjschilen%40kent.edu%7C7b9b53bed6e343cafdf508d5788b7683%7Ce5a06f4a1ec44d018f73e7dd15f26134%7C1&sdata=xtzi%2BPOKXcP2GhQI0MBqXXjeyTd1KVtBNjXIthYVNgw%3D&reserved=0>. -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CY4PR08MB2615BADF17DA80EF28659DC0A8CF0%40CY4PR08MB2615.namprd08.prod.outlook.com.
