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]] On Behalf Of Ray Bon
Sent: Friday, February 16, 2018 4:15 PM
To: [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>.

-- 
- 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/CY4PR08MB2615C7175E07E7C8189C8450A8CF0%40CY4PR08MB2615.namprd08.prod.outlook.com.

Reply via email to