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.
The "Configure (Edit server.xml)" menu item in the Server Registry > Installed Servers > Tomcat 4.0 > Internal pop- up menu does not work after switching projects. To reproduce, open the IDE. Switch to a different project using the Project > Project Manager menu item from the menu bar. After the new project is open, select the "Configure (Edit server.xml)" for the Tomcat Internal server in the Runtime tab. Nothing happens.
Now I can only confirm the issue. I am going to investigate it further.
I investigated the issue. The bug is somewhere in org.openide.text.CloneableEditor. There is an open() method which does nothing, because discard() method returns false - it's because the support.env().isValid() returns false after switching projects.
Yes it is not opening because the support env returns it is invalid. And the support is of type: org.netbeans.modules.web.xmlutils.XMLJ2eeEditorSupport and environment of type: org.netbeans.modules.web.xmlutils.XMLJ2eeEditorSupport$XmlEnv Investigate why they are invalid, if they shouldn't be. Reassigning back. Note: I also added logging in CloneableEditor for such cases to see it directly on console. (openide/../text/CloneableEditor.java 1.51)
Switching to another project has an effect that Tomcat40DataObject is invalidated, together with org.netbeans.modules.web.xmlutils.XMLJ2eeEditorSupport$XmlEn v We need to investigate this issue farther.
tomcat40_base/conf filesystem shouldn't be unmounted when projects are being switched. This caused the invalidation of the Tomcat40DataObject . Special TomctFileSystem was created which is resistant against the project switching. Fixet to trunk. 02/28/2003. Need to be checked into release35 branch.
Increased the priority to P2, because after switching projects, the tomcat functionality is rather limited. Not only server.xml file can't be opened - also the web module can't be executed in new project - see #29755.
Fixed also in release35 branch.
I forgot to change the status.
VERIFIED