Here is a jar which named 'cat-client-1.4.0.jar' and I want to grant permissions for it:
grant codeBase "${codebase.cat-client-1.4.0.jar}" {
permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
permission java.lang.RuntimePermission "*";
permission java.io.FilePermission "/data/applogs/cat", "write,read";
permission java.io.FilePermission "/data/appdatas/cat", "write,read";
permission java.io.FilePermission "/data/applogs/cat/*", "write,read";
};
but it doesn't work. There are other settings below which works
grant codeBase "${codebase.lucene-misc-6.2.1.jar}" {
// needed to allow shard shrinking to use hard-links if possible via lucenes HardlinkCopyDirectoryWrapper
permission java.nio.file.LinkPermission "hard";
};
I am wondering why my settings doesn't work?