Application server can not be started with a java security manager
------------------------------------------------------------------
Key: JBAS-7821
URL:
https://jira.jboss.org/jira/browse/JBAS-7821
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: JBossAS-6.0.0.M2
Environment: Windows Vista, jdk 1.6.0 (build 1.6.0_07-b06)
Reporter: Dmitri Voronov
If JBoss is started with a java security manager:
-Djava.security.manager ^
an exception is thrown:
java.security.AccessControlException: access denied (java.util.PropertyPermission *
read,write)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
at java.security.AccessController.checkPermission(AccessController.java:546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkPropertiesAccess(SecurityManager.java:1252)
at java.lang.System.getProperties(System.java:582)
at org.jboss.Main.<init>(Main.java:146)
at org.jboss.Main$1.run(Main.java:737)
at java.lang.Thread.run(Thread.java:619)
this issue occurs even if a policy file with the required permission is provided:
-Djava.security.policy=C:/server.policy
containing:
grant {
permission java.util.PropertyPermission "*", "read,write";
...
};
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira