IntelliJ is telling me that it
Cannot resolve security role
I'm pretty sure I had to put the roles in another file as well as in web.xml but I can't find much info on that. maybe hboss-web.xml ?
<security-constraint>
<web-resource-collection>
<web-resource-name>Secure Pages</web-resource-name>
<description/>
<url-pattern>/u/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>USER</role-name>
<role-name>ADMIN</role-name>
</auth-constraint>
</security-constraint>
I'm new on intelliJ so maybe I'm misunderstanding something.