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.
build 200601311900 -create web project -open web.xml and add something (e.g. comment) -save web.xml -create servlet -ERROR: added comment is lost
It seems that only comments are lost, other data is preserved. In any case it a rather serious issue. It looks like now that the j2ee/ddloaders module is not enabled, changes to the WebApp are written using the Schema2BeansUtil#write method, which apparently does not preserve comments. If j2ee/ddloaders was enables, the changes would be written using the DDProviderDataObject#writeModel model, which does preserve comments. So, in short, this issue should be resolved when the j2ee/ddloaders module is re-enabled.
I'm sorry my description wasn't clear enough. This happens with all elements, not only with comments.
It was clear, but at first I couldn't reproduce it with other elements. But now I can reproduce it with other elements as well, I must have been doing something differently.
This will be fixed when j2ee/ddloaders is re-enabled, which should happen in M8 => setting the TM accordingly.
I tested this now that the ddloaders module is enabled, and it does seem to work correctly now.
verified