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.
If you copy a sun-web.xml file and paste it on another location, and double click on it, I have an exception. I don't think configure should be possible there. Only plain XML capabilities (editing, validation). Also, on the good sun-web.xml in the xml editor, I don't have the Check XML popup actions... I did register all our sun* doctypes in the registry. How can we enable Check XML?
Created attachment 13725 [details] exception
I believe the check xml portion was fixed (before high resistence) the other part is not a show stopper and has to wait for promo-D.
The problem with copy/paste is that nb does not invalidate the data object after c/p. We will need to override paste and invalidate the DO to force the file being recognized by xml loader. If you just create a file with the same name it will not be recognized by config loader but standard xml.
I have added a code that invalidates the new DO at paste and forces creation of a new DO. If this should fail for any reason (setValid is vetoable) -- which I am not able to simulate -- I see that now you only get an informational exception message in log. Nothing would be displayed to the user and the XML editor would be open instead of the UI editor. cvs commit -m "40604 sun-web.xml in another location: error (force using correct loader when pa..." org\netbeans\modules\j2ee\deployment\config\ConfigDataObject.java (in directory E:\nb_all\j2eeserver\src\) Checking in org/netbeans/modules/j2ee/deployment/config/ConfigDataObject.java; /cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/config/ConfigDataObject.java,v <-- ConfigDataObject.java new revision: 1.19; previous revision: 1.18 done