Java Web Start AccessControlException LoggingPermission

时间:2014-07-04 11:12:01

标签: java permissions java-web-start code-access-security

运行我的JWS应用程序时出现以下异常,即使我签署了所有jar文件并将localhost添加到异常站点列表中。

Missing Application-Name manifest attribute for: http://localhost/page/CWSExecution.jar
Missing Permissions manifest attribute in main jar: http://localhost/page/CWSExecution.jar
starting
Exception in thread "AWT-EventQueue-2" java.security.AccessControlException: access denied ("java.util.logging.LoggingPermission" "control")
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:372)
    at java.security.AccessController.checkPermission(AccessController.java:559)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
    at java.util.logging.LogManager.checkPermission(LogManager.java:1414)
    at java.util.logging.Handler.checkPermission(Handler.java:301)
    at java.util.logging.Handler.setLevel(Handler.java:256)
    at fr.dauphine.wscn.WindowHandler.configure(LogFrame.java:106)

这是我在启动应用程序之前获得的唯一警告:

Figure 1

另外,如果我点击“更多信息”,我可以看到我创建的证书。

我实际上已将此Java log: Log and Window(JFrame, frame) example改编为在我的JWS应用程序中工作。该错误是由“configure”方法引起的:

setLevel(level != null ? Level.parse(level) : Level.INFO);

0 个答案:

没有答案