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 automated fix will add any missing security-role elements.
In this example, the automated fix will add the following elements to your configuration: web.xml file: