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 53127 - Values getting wiped out in case of Populated Application
Summary: Values getting wiped out in case of Populated Application
Status: CLOSED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Nam Nguyen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-07 19:27 UTC by Rajeshwar Patil
Modified: 2006-03-24 12:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rajeshwar Patil 2005-01-07 19:27:00 UTC
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)
Comment 1 Nam Nguyen 2005-01-08 07:19:36 UTC
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.
Comment 2 Nam Nguyen 2005-01-08 07:24:44 UTC
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
Comment 3 Martin Grebac 2005-01-11 12:42:55 UTC
needs merge to trunk
Comment 4 Nam Nguyen 2005-01-11 23:13:31 UTC
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)
Comment 5 Lukas Jungmann 2005-01-12 13:48:24 UTC
v. 200501120000