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.
When I open a jaxws service, NetBeans overwrites the sun-web.xml file with a different version of this file. This is problematic when it is security-role-mapping information that is overwritten. In this case, the appclient will not successfully run against the service.
Created attachment 33732 [details] example application with security role mapping in sun-web.xml
--> sunappsrv You need to define the corresponding security-role entry in web.xml. The JSR-88 DConfigBean for security-role-mapping is bound to that field of web.xml. I will fix the dataloss aspect of this in spite of the missing security-role field, but it would not enable the GUI editor for security-role-mapping. You would have to edit that portion in XML text mode if you don't fix this.
I have a pattern that solves a comparable problem for sun-application.xml. It can be safely applied to web/ejb/appclient so I recommend this be upgraded to P2 and fixed during HCF.
Upgrading to P2 to fix in high resistence mode. Justification is that the scenario could cause inadvertent dataloss in the customer's project.
Fixed. http://serverplugins.netbeans.org/source/browse/serverplugins/sun/sunddui/src/org/netbeans/modules/j2ee/sun/share/configbean/SecurityRoleMapping.java?r1=1.1.16.1.2.4&r2=1.1.16.1.2.4.10.1 http://serverplugins.netbeans.org/source/browse/serverplugins/sun/sunddui/src/org/netbeans/modules/j2ee/sun/share/configbean/EjbJarRoot.java?r1=1.1.16.6.2.11&r2=1.1.16.6.2.11.6.1 http://serverplugins.netbeans.org/source/browse/serverplugins/sun/sunddui/src/org/netbeans/modules/j2ee/sun/share/configbean/WebAppRoot.java?r1=1.1.16.5.2.8&r2=1.1.16.5.2.8.10.1 http://serverplugins.netbeans.org/source/browse/serverplugins/sun/sunddui/src/org/netbeans/modules/j2ee/sun/share/configbean/AppRoot.java?r1=1.1.16.4.2.7&r2=1.1.16.4.2.7.6.1 http://serverplugins.netbeans.org/source/browse/serverplugins/sun/sunddui/src/org/netbeans/modules/j2ee/sun/share/configbean/BaseRoot.java?r1=1.1.16.4.2.4&r2=1.1.16.4.2.4.16.1
these diffs look fine
Committed to release55_dev
The fix looks fine,you can commit it to release55 branch.
Fix committed to release55 branch.
VERIFIED