我已安装 JDK 8.0 并安装 NetBeans IDE 8.0 。我可以启动嵌入式GlassFish Server 4.0。但我无法进入Glassfish Domain Admin Console。 我收到以下消息......
* *警告:ServletContext的上下文路径:与bundle的路径不同:/
严重:PWC6117:文件" C:\ Program Files \ glassfish-4.0 \ glassfish \ lib \ install \ applications__admingui \ common \ index.jsp"没找到**
答案 0 :(得分:2)
现在我可以通过更改 java.policy 来查看Glassfish Domain Admin Console。
java.policy 位于 JAVA_HOME / jre8 / lib / security
下我的java.policy是这样的......
// Standard extensions get all permissions by default
**grant {
permission java.net.Socket.Permission "localhost:1527","listen";
};**
// default permissions granted to all domains
grant {
// Allows any thread to stop itself using the java.lang.Thread.stop()
// method that takes no argument.
// Note that this permission is granted by default only to remain
// backwards compatible.
// It is strongly recommended that you either remove this permission
// from this policy file or further restrict it to code sources
// that you specify, because Thread.stop() is potentially unsafe.
// See the API specification of java.lang.Thread.stop() for more
// information.
permission java.lang.RuntimePermission "stopThread";
// allows anyone to listen on dynamic ports
permission java.net.SocketPermission "localhost:0", "listen";
// "standard" properies that can be read by anyone
permission java.util.PropertyPermission "java.version", "read";
permission java.util.PropertyPermission "java.vendor", "read";
permission java.util.PropertyPermission "java.vendor.url", "read";
permission java.util.PropertyPermission "java.class.version", "read";
permission java.util.PropertyPermission "os.name", "read";
permission java.util.PropertyPermission "os.version", "read";
permission java.util.PropertyPermission "os.arch", "read";
permission java.util.PropertyPermission "file.separator", "read";
permission java.util.PropertyPermission "path.separator", "read";
permission java.util.PropertyPermission "line.separator", "read";
permission java.util.PropertyPermission "java.specification.version", "read";
permission java.util.PropertyPermission "java.specification.vendor", "read";
permission java.util.PropertyPermission "java.specification.name", "read";
permission java.util.PropertyPermission "java.vm.specification.version", "read";
permission java.util.PropertyPermission "java.vm.specification.vendor", "read";
permission java.util.PropertyPermission "java.vm.specification.name", "read";
permission java.util.PropertyPermission "java.vm.version", "read";
permission java.util.PropertyPermission "java.vm.vendor", "read";
permission java.util.PropertyPermission "java.vm.name", "read";
};