This rule flags auth-constraint , role-name elements found in the WEB-INF/web.xml file that are missing the corresponding security-role element. Apache Tomcat server does not require that the security-role element be defined, but the Java EE specification indicates that it must be defined.
This is an example of auth-constraint , role-name elements that would be flagged:Both the <role-name>admin</role-name> and the <role-name>superuser</role-name> lines would be flagged.
The source scanner contains a quick fix that adds any missing security-role elements.
In this example, the quick fix would add the following elements to the web.xml file: