I add some files in “modules/transport-netty4”, and use a thrid party jar as dependency. When I start up elasticsearch, it failed, and error message shows in log file:
//ERROR org.elasticsearch.bootstrap.ElasticsearchUncaughtExceptionHandler: fatal error in thread [main], exiting java.lang.ExceptionInInitializerError: null
//Caused by: java.security.AccessControlException: access denied ("java.io.FilePermission" "/opt/dap_security/application.properties" "read")
So I modify "plugin-security.policy" in "modules/transport-netty4" (The thrid party jar also in this directory):
permission Java.io.FilePermission "/opt/dap_security/application.properties", "read";
But it does not work, error message still exists.
I want to know how to make java security policy files useful? Or other ways to solve the above problem?
elasticsearch version: v5.4.0