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.
I've used S1S build 020821. How to reproduce: Switch to Runtime tab in the explorer window. Call popup menu for Server Registry->Installed Servers->Tomcat 4.0->Internal and choose 'Configure' Change 'port' attribute to 8082 in the Connector line. Now close the editor window and hit 'Discard' button Since all changes was discarded port should be 8081, but in the explorer window we will see that it's still 8082. At this moment you will be unable to run tomcat server.
It's really a bug. The issue is in Tomcat40DataObject-the changes in the text editor are propagated to the explorer properties and cannot be rollbacked any more - when user decides to discard the changes.
The root of the issue is related to the design of the XmlJ2eeDataObject. The changes in text editor are immediately propagated to the data model, thus, the node properties are immediately changed. The Cancel button has no impact then. The design of the XmlJ2eeDataObject should be changed.
Created attachment 11430 [details] proposed fix
Evaluation: when file server.xml is discarded it must be parsed again.
Fixed in Nevada Patch 1 and in Arrow.
Tomcat4 plugin was replaced by Tomcat5 plugin. This issue isn't relevant to new plugin.