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.
Test Case: 1) Create Populated Application 2) Create Mdb 3) Open sun-ejb-jar.xml in text mode (you will see all the entries there) 4)close sun-ejb-jar.xml 5) save(click save icon) 6) Open sun-ejb-jar.xml (you will see default sun-ejb-jar.xml; all the entries gone) Workaround: Create standalone Ejb Modul; create Mdb and then add Ejb Module to an Application(Not the Populated Application)
This happens because we have duplicate DConfigBean for child modules inside J2eeApp configuration storage. The need of this duplication is because of original UI design (over a year ago) for showing configuration of child modules inside the configuration editor of J2eeApp. This lead to potential concurrent editing from 2 editors to the same data, unless the original design plan is for some feature of overriding configuration at J2eeApp level. The current supported feature list, as well as development modules build structures has no such support, hence leaving the 2 editors on the same data does not make any sense. To fix this bug, we have to cleanup the J2eeApp config editor and storage not to redundantly represent child modules configuration.
Fix in EA2 branch (QBE200501041900): /cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/config/ConfigurationStorage.java,v <-- ConfigurationStorage.java new revision: 1.35.4.1; previous revision: 1.35 src/org/netbeans/modules/j2ee/deployment/config/ui/ConfigBeanNode.java; /cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/config/ui/ConfigBeanNode.java,v <-- ConfigBeanNode.java new revision: 1.12.2.1; previous revision: 1.12 src/org/netbeans/modules/j2ee/deployment/config/ui/ConfigBeanTopComponent.java; /cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/config/ui/ConfigBeanTopComponent.java,v <-- ConfigBeanTopComponent.java new revision: 1.29.2.2; previous revision: 1.29.2.1 src/org/netbeans/modules/j2ee/deployment/config/ui/resources/ConfigFile.gif; /cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/config/ui/resources/ConfigFile.gif,v <-- ConfigFile.gif new revision: 1.2.68.1; previous revision: 1.2
needs merge to trunk
Merged to trunk: nb_all/j2eeserver> cvs commit -m "issue 53127 Do not show child configuration in j2eeapp config editor" src/org/netbeans/modules/j2ee/deployment/config/ui/ConfigBeanTopComponent.java src/org/netbeans/modules/j2ee/deployment/config/ConfigurationStorage.java Checking in src/org/netbeans/modules/j2ee/deployment/config/ui/ConfigBeanTopComponent.java; /cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/config/ui/ConfigBeanTopComponent.java,v <-- ConfigBeanTopComponent.java new revision: 1.30; previous revision: 1.29 done Processing log script arguments... More commits to come... Checking in src/org/netbeans/modules/j2ee/deployment/config/ConfigurationStorage.java; /cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/config/ConfigurationStorage.java,v <-- ConfigurationStorage.java new revision: 1.36; previous revision: 1.35 done Processing log script arguments... Mailing the commit message to cvs@j2eeserver.netbeans.org (from nnguyen@netbeans.org)
v. 200501120000