Securing JAX-RS resources using annotations ibm.com
tag security-constraint in web.xml does not work with. Creating a security constraint use. for example, you can specify the web.xml basic security-constraint problem Red Hat. Second option is to add security constraint to the web.xml file: Specifying Security Constraints (The Java EE 6 Tutorial)