The sun-web.xml visual editor lets you edit the platform-specific web deployment descriptor for the Sun Java System Application Server. The Security Role Mapping pane of the visual editor helps you specify the principals and groups assigned to each security role specified in web.xml. A web application only contains a sun-web.xml deployment descriptor if its target server is the Sun Java System Application Server.
You open the sun-web.xml visual editor by expanding your project's Configuration Files node in the Projects window and double-clicking the sun-web.xml file. You open the Security Role Mapping pane of the sun-web.xml visual editor by expanding the Sun Web Application node in the left pane of the visual editor and selecting a security role subnode. The security role subnodes under the Sun Web Application node are determined by the security roles defined in web.xml.
You can click Edit As XML in the top corner the Security Role Mapping pane to open and edit sun-web.xml in the XML editor.
From this pane, you can specify the following security role mapping properties:
The names of the principals and groups specified in sun-web.xml must also be defined on the Sun Java System Application Server. For more on working with users and groups, see Managing Users for the Sun Java System Application Server
To add a security role: