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.

Bug 94005 - dataloss when creating servlet
Summary: dataloss when creating servlet
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: DD Editor (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on: 93404
Blocks: 94383
  Show dependency tree
 
Reported: 2007-02-02 16:50 UTC by Jan Horvath
Modified: 2007-03-22 13:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Horvath 2007-02-02 16:50:06 UTC
build 200601311900

-create web project
-open web.xml and add something (e.g. comment)
-save web.xml
-create servlet
-ERROR: added comment is lost
Comment 1 Erno Mononen 2007-02-02 22:06:08 UTC
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.
Comment 2 Jan Horvath 2007-02-03 19:44:23 UTC
I'm sorry my description wasn't clear enough. This happens with all elements,
not only with comments.
Comment 3 Erno Mononen 2007-02-05 08:31:49 UTC
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.
Comment 4 Erno Mononen 2007-02-06 13:54:55 UTC
This will be fixed when j2ee/ddloaders is re-enabled, which should happen in M8 
=> setting the TM accordingly.
Comment 5 Erno Mononen 2007-02-08 15:21:09 UTC
I tested this now that the ddloaders module is enabled, and it does seem to 
work correctly now.
Comment 6 Radim Roska 2007-03-22 13:56:26 UTC
verified