This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
In SJSAS or GlassFish environment, one need to specify the security-role-mapping in sun-*.xml for security. This is currently not supported in the NetBeans IDE.
--> sun appserv
This issue is file against NetBeans 5.0, which has a full GUI editor for handling Security-role-mappings in all sun descriptors files. You merely have to make sure that security-role entries exist in the corresponding standard descriptor first. Is this the version of NetBeans you are using?
If we have an ear application containing a war, and the roles are defined in the war, then one cannot specify the security role mapping in the application level. It is important to be able to do this as we may have two different war level mapping which you want to override in the application level.
Duplicate of issue 82327. You can add the security-role-mappings you need to sun-application.xml, but you have to edit the XML file directly (in NB, right click the file and select <Edit> or click the <Edit as XML> button in the upper right corner of the config editor for sun-application.xml). You are correct that there is no GUI for this particular use case. This might be resolved in NB 6.0, but it is unclear if there will be sufficient resources to complete it in time. *** This issue has been marked as a duplicate of 82327 ***
Additional note: If you are find, in NB 5.0, that additional security-role-mappings added this way are silently removed from sun-application.xml, upgrade to NB 5.5 (preferably 5.5.1 actually). I can't remember exactly when I put code to handle that aspect but it works well in 5.5.x