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 servlet class name element of web.xml, I think it is OK to have spaces or CR(LF) before and after the FQN class name. The BP catalog samples have some... But the web.xml visual editor fails to "go to source" button with such pattern... The fix is very easy: got to source for servlet class names or other fqn names described in web.xml should remove all leading or trailing blank chars or \n chars. p2, since the usability of the web.xml visual editor is impacted... If this cannot be fixed, move this bug to BP solution catalog category.
The fix is easy. Planned to 4.1.
Changed in trunk: implemented for Servlet panel, Filter panel. Diffs: http://web.netbeans.org/source/browse/web/core/src/org/netbeans/modules/web/dd/multiview/ServletPanel.java?r1=1.19&r2=1.20 http://web.netbeans.org/source/browse/web/core/src/org/netbeans/modules/web/dd/multiview/FilterPanel.java?r1=1.14&r2=1.15
It would be better to perform necessary checks and trim() in DDUtils.
Need to verify this is working as well in ejb-jar.xml editor...
This is a better fix as Pavel suggested : (implemented in trunk) http://web.netbeans.org/source/browse/web/core/src/org/netbeans/modules/web/dd/multiview/DDUtils.java?r1=1.8&r2=1.9 http://web.netbeans.org/source/browse/web/core/src/org/netbeans/modules/web/dd/multiview/ServletPanel.java?r1=1.19&r2=1.21
Pavle, the second diff is just code simplification. Could you also check if sun-web.xml editor contains similar functionality ?
I am sorry, I meant the ejb-jar.xml not sun-web.xml.
Current changes are OK. In ejb-jar we haven't such issue as we don't work with XML elements but with properties of EjbJar object.
Verified in trunk build 200504051800 by QE - it is ready for release41 integration.
Changes merged to release41 branch.
Verified in build 200504062223 (release41 branch).