11.11.5. Debug Security Manager Policies
You can enable debugging information to help you troubleshoot security policy-related issues. The
java.security.debugoption configures the level of security-related information reported. The command
java -Djava.security.debug=helpwill produce help output with the full range of debugging options. Setting the debug level to
allis useful when troubleshooting a security-related failure whose cause is completely unknown, but for general use it will produce too much information. A sensible general default is
Procedure 11.38. Enable general debugging
This procedure will enable a sensible general level of security-related debug information.Add the following line to the server configuration file.
- If the JBoss EAP 6 instance is running in a managed domain, the line is added to the
bin/domain.conffile for Linux or the
bin\domain.conf.batfile for Windows.
- If the JBoss EAP 6 instance is running as a standalone server, the line is added to the
bin/standalone.conffile for Linux, or the
bin\standalone.conf.batfile for Windows.
set "JAVA_OPTS=%JAVA_OPTS% -Djava.security.debug=access:failure"
A general level of security-related debug information has been enabled.