json - Running vert.x with java security manager -
when run vertx verticle without java.security.manager works fine.
when try run same vertx verticle java.security.manager tells me "configuration file not contain valid json object". configuration file simple , works expectet
file mod.json:
{ "main":"server.java" }
file ./bin/vertex:
jvm_opts="-djava.security.manager -djava.security.policy=my.policy"
file ./my.policy:
grant codebase "file:${java.home}/lib/-" { permission java.security.allpermission; }; grant codebase "file:${java.home}/jre/lib/ext/-" { permission java.security.allpermission; }; grant codebase "file:${java.home}/../lib/-" { permission java.security.allpermission; }; grant codebase "file:/home/internet//downloads/vert.x-2.1.5/lib/-" { permission java.util.propertypermission "user.dir", "read"; permission java.util.propertypermission "java.io.tmpdir", "read"; }; grant codebase "file:/home/internet//downloads/vert.x-2.1.5/lib/-" { permission java.lang.runtimepermission "modifythread"; permission java.lang.runtimepermission "getenv.vertx_disable_mavenlocal"; permission java.lang.runtimepermission "shutdownhooks"; permission java.lang.runtimepermission "getclassloader"; permission java.lang.runtimepermission "setcontextclassloader"; permission java.lang.runtimepermission "accessclassinpackage.java.io"; permission javax.management.mbeanserverpermission "creatembeanserver"; permission java.lang.management.managementpermission "monitor"; permission java.util.propertypermission "*", "read, write"; permission java.io.filepermission "/home/internet/downloads/vert.x-2.1.5/my~mod~eins.zip", "read"; permission java.io.filepermission "/tmp/-", "read, write"; };
file mod.json:
{ "main":"server.java" }
commandline:
./bin/vertx runmod my~mod~first
the result on commandline:
configuration file not contain valid json object
Comments
Post a Comment