Hi all, I've had searched around here for a similar problem but couldn't 
find it so I am posting in hope somebody can help me find and answer, or 
show me where I am doing things wrong.

I need to modify some cas ticket registry, expiration policy, 
configurations, I want to change the Time To Kill of ST tickets, but when I 
use the Configuration written on the DOC:
cas.ticket.st.time-to-kill-in-seconds=60

I can't get to start CAS, and I find an error of Hazelcast. I use Hazelcast 
for ticket share on my cluster environment, so I guess that I can't use 
default ticket configuration properties when I use hazelcast because it 
would be delegated to it.

The problem is that I can't find the equivalent configuration to use for my 
hazelcast configuration (if there is one...). Do somebody knows about the 
correct property? Is there something I can do to get my desired result?

Thanks for your time.

The error I get on catalina.out:

     Caused by: org.springframework.beans.factory.BeanCreationException: 
        Error creating bean with name 'casTicketRegistryHazelcastInstance' 
        defined in class path resource 
[org/apereo/cas/config/HazelcastTicketRegistryConfiguration.class]:
        Bean instantiation via factory method failed; nested exception is 
        org.springframework.beans.BeanInstantiationException: Failed to 
instantiate 
        [com.hazelcast.core.HazelcastInstance]: Factory method 
'casTicketRegistryHazelcastInstance' 
        threw exception; nested exception is 
com.hazelcast.config.InvalidConfigurationException: 
        Cannot add a dynamic configuration 
'MapConfig{name='serviceTicketsCache', inMemoryFormat=BINARY',
        metadataPolicy=CREATE_ON_UPDATE, backupCount=1, asyncBackupCount=0, 
timeToLiveSeconds=0, maxIdleSeconds=90, 
        readBackupData=false, evictionConfig=EvictionConfig{size=85, 
maxSizePolicy=USED_HEAP_PERCENTAGE, 
        evictionPolicy=LRU, comparatorClassName=null, comparator=null}, 
        merkleTree=MerkleTreeConfig{enabled=false, depth=10}, 
eventJournal=EventJournalConfig{enabled=false, 
        capacity=10000, timeToLiveSeconds=0}, 
hotRestart=HotRestartConfig{enabled=false, fsync=false}, 
        nearCacheConfig=null, mapStoreConfig=MapStoreConfig{enabled=false, 
className='null', factoryClassName='null', 
        writeDelaySeconds=0, writeBatchSize=1, implementation=null, 
factoryImplementation=null, properties={}, 
        initialLoadMode=LAZY, writeCoalescing=true}, 
mergePolicyConfig=MergePolicyConfig
        {policy='com.hazelcast.spi.merge.PutIfAbsentMergePolicy', 
batchSize=100}, wanReplicationRef=null, 
        entryListenerConfigs=null, indexConfigs=null, 
attributeConfigs=null, splitBrainProtectionName=null, 
        queryCacheConfigs=null, cacheDeserializedValues=INDEX_ONLY}' as 
there is already a conflicting configuration 
        'MapConfig{name='serviceTicketsCache', inMemoryFormat=BINARY', 
metadataPolicy=CREATE_ON_UPDATE, backupCount=1, 
        asyncBackupCount=0, timeToLiveSeconds=0, maxIdleSeconds=10, 
readBackupData=false, 
        evictionConfig=EvictionConfig{size=85, 
maxSizePolicy=USED_HEAP_PERCENTAGE, evictionPolicy=LRU, 
        comparatorClassName=null, comparator=null}, 
merkleTree=MerkleTreeConfig{enabled=false, depth=10}, 
        eventJournal=EventJournalConfig{enabled=false, capacity=10000, 
timeToLiveSeconds=0}, 
        hotRestart=HotRestartConfig{enabled=false, fsync=false}, 
nearCacheConfig=null, 
        mapStoreConfig=MapStoreConfig{enabled=false, className='null', 
factoryClassName='null', 
        writeDelaySeconds=0, writeBatchSize=1, implementation=null, 
factoryImplementation=null, 
        properties={}, initialLoadMode=LAZY, writeCoalescing=true}, 
        
mergePolicyConfig=MergePolicyConfig{policy='com.hazelcast.spi.merge.PutIfAbsentMergePolicy',
 

        batchSize=100}, wanReplicationRef=null, entryListenerConfigs=[], 
indexConfigs=[], 
        attributeConfigs=[], splitBrainProtectionName=null, 
queryCacheConfigs=[], cacheDeserializedValues=INDEX_ONLY}
        
        SEVERE [main] org.apache.catalina.startup.HostConfig.deployWAR 
Error deploying web application archive [/path/to/cas.war]
        java.lang.IllegalStateException: Error starting child

-- 
- 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 cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/8fa89ab1-b864-44c1-b1b9-28f455c625c4n%40apereo.org.

Reply via email to