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 26736 - Tomcat properties is not updated if changes in server.xml was discarded
Summary: Tomcat properties is not updated if changes in server.xml was discarded
Status: RESOLVED WONTFIX
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: -S1S-
Hardware: PC Windows ME/2000
: P3 blocker with 1 vote (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-23 14:42 UTC by Sergey Soldatov
Modified: 2004-01-12 13:17 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
proposed fix (328 bytes, patch)
2003-08-26 12:43 UTC, jdi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Soldatov 2002-08-23 14:42:10 UTC
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.
Comment 1 Milan Kuchtiak 2002-09-02 10:50:45 UTC
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.
Comment 2 Milan Kuchtiak 2003-03-03 12:15:34 UTC
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.
Comment 3 jdi 2003-08-26 12:43:07 UTC
Created attachment 11430 [details]
proposed fix
Comment 4 jdi 2003-08-26 12:45:50 UTC
Evaluation: when file server.xml is discarded it must be 
parsed again.
Comment 5 Antonin Nebuzelsky 2003-11-04 15:04:23 UTC
Fixed in Nevada Patch 1 and in Arrow.
Comment 6 Milan Kuchtiak 2004-01-12 13:17:10 UTC
Tomcat4 plugin was replaced by Tomcat5 plugin.
This issue isn't relevant to new plugin.