KB Article #176297
Failed to configure cache manager error when using envSettings.props to define host & port for distributed cache
Problem
-- When you try to use envSettings.props to define separate properties for host & port for the distributed cache, like this:
hostName=${env.my.host},port=${env.my.port},socketTimeoutMillis=120000
deployment fails with an error similar to -
ERROR 2014/07/31 11:34:53.006 java exception:
com.vordel.es.EntityStoreException: Failed to configure module: '/[CacheManager]name=Cache Manager' reason: 'For input string: "${env.my.port}"'
Resolution
* The problem is that the second environmental setting is not being expanded. You should instead define a combined property in envSettings.props similar to -
env.my.cache=hostName=127.0.0.1,port=4001
Then set the distributed cache propreties to:
${env.my.cache},socketTimeoutMillis=120000