Hi All,
I am getting error called required licences file even though TC-license.key in place. Also i am not able to configuring Cache Manager to Stand alone server (Big Memory Max) . The TMC console never shows up the CM configured. Even i tried with java class file created and using the enchache.xml property files. Below are the java code and property file changes
//import com.terracottatech.offheapstore.util.MemoryUnit;
//import com.terracotta.entity.ehcache.*;
import net.sf.ehcache.Cache;
import net.sf.ehcache.CacheManager;
import net.sf.ehcache.config.CacheConfiguration;
import net.sf.ehcache.config.Configuration;
import net.sf.ehcache.config.MemoryUnit;
import net.sf.ehcache.Element;
public class CacheManageMain {
/**
*
*/
public static void main(String[] args) {
Configuration managerConfiguration = new Configuration()
.name("bigmemory-config")
.cache(new CacheConfiguration()
.name("BigMemory")
.maxBytesLocalHeap(512, MemoryUnit.MEGABYTES)
.maxBytesLocalOffHeap(1, MemoryUnit.GIGABYTES)
.copyOnRead(true)
.eternal(true)
);
CacheManager manager = CacheManager.create(managerConfiguration);
try{
Cache bigMemory = manager.getCache("BigMemory");
// do stuffs here
}finally{
if (manager != null) manager.shutdown();
}
}
}
Property file
Error facing is :
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread “main” net.sf.ehcache.CacheException: Terracotta license key is required for Enterprise capabilities. Please place terracotta-license.key in Terracotta installed directory or in resource path. You could also specify it through system property -Dcom.tc.productkey.path=/path/to/key
at net.sf.ehcache.EnterpriseFeaturesManager.createStore(EnterpriseFeaturesManager.java:117)[i][flash]
Please help here
Regards
Shafi