Java Security Manager can not be enabled with JBoss RPM's
— /etc/sysconfig/jbossas — Add the following to the end of the file
JAVA_OPTS="$JAVA_OPTS -Djava.security.debug=access:failure -Djava.security.manager -Djava.security.policy==/usr/share/jbossas/my_policy.policy -Djboss.modules.policy-permissions=true"
— /usr/share/jbossas/my_policy.policy —
grant codeBase "file:${java.home}/lib/ext/*" {
permission java.security.AllPermission;
};
grant codeBase "file:${java.home}/lib/*" {
permission java.security.AllPermission;
};
// For java.home pointing to the JDK jre directory
grant codeBase "file:${java.home}/../lib/*" {
permission java.security.AllPermission;
};
grant codeBase "file:/usr/share/java/-" {
permission java.security.AllPermission;
};
grant codeBase "file:${jbosseap.dir}/jboss-modules.jar" {
permission java.security.AllPermission;
};
— Then start the jboss server —
- service jbossas start