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 56412 - Empty elements are written out to sun-ejb-jar.xml for elements with no value
Summary: Empty elements are written out to sun-ejb-jar.xml for elements with no value
Status: CLOSED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 4.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Rajeshwar Patil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-15 01:30 UTC by Rajeshwar Patil
Modified: 2006-03-24 13:18 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-03-15 01:30:25 UTC
Steps to Reproduce:
1) Create Ejb Module
2) Add bean to it(Say Session bean)
3) Open Config editor(double-click sun-ejb-jar.xml) and select the bean node.
4) Click <Ior Security> tab & select vaules for all the elements.
5) Save and exit the config editor.
6) Open sun-ejb-jar.xml in edit mode(by right-clicking & selecting edit); you
will see <ior-security> element with all the proper values.
7) Close sun-ejb-jar.xml and open it in config mode.
8) Click <Ior Security> tab and empty all the fields.
9) Save; close config editor and open sun-ejb-jar.xml in edit mode.
   You will notice <ior-security> element with all the empty sub-elements.

It would be nice to remove the empty elements all together. This will make the
file more simple & legible.
Comment 1 Rajeshwar Patil 2005-03-17 01:26:12 UTC
This fix involves changes to almost all the elements of all the bean types.
Need to discuss more with Ludo.
Comment 2 Rajeshwar Patil 2005-03-18 20:11:44 UTC
Files Modified:
libsrc/org/netbeans/modules/j2ee/sun/share/Constants.java 
new revision: 1.2; previous revision: 1.1

libsrc/org/netbeans/modules/j2ee/sun/share/configBean/BaseEjb.java 
new revision: 1.10; previous revision: 1.9

libsrc/org/netbeans/modules/j2ee/sun/share/configBean/CmpEntityEjb.java 
new revision: 1.7; previous revision: 1.6

libsrc/org/netbeans/modules/j2ee/sun/share/configBean/EntityEjb.java 
new revision: 1.5; previous revision: 1.4

libsrc/org/netbeans/modules/j2ee/sun/share/configBean/MDEjb.java 
new revision: 1.8; previous revision: 1.7

libsrc/org/netbeans/modules/j2ee/sun/share/configBean/SessionEjb.java 
new revision: 1.9; previous revision: 1.8

libsrc/org/netbeans/modules/j2ee/sun/share/configBean/customizers/ejbmodule/CmpEntityEjbCustomizer.java
new revision: 1.9; previous revision: 1.8
 
libsrc/org/netbeans/modules/j2ee/sun/share/configBean/customizers/ejbmodule/EjbCustomizer.java
new revision: 1.5; previous revision: 1.4
 
libsrc/org/netbeans/modules/j2ee/sun/share/configBean/customizers/ejbmodule/EjbJarRootCustomizer.java
new revision: 1.5; previous revision: 1.4
 
libsrc/org/netbeans/modules/j2ee/sun/share/configBean/customizers/ejbmodule/EntityEjbCustomizer.java
new revision: 1.4; previous revision: 1.3
 
libsrc/org/netbeans/modules/j2ee/sun/share/configBean/customizers/ejbmodule/MDEjbCustomizer.java

new revision: 1.4; previous revision: 1.3
Comment 3 Lukas Jungmann 2005-07-12 14:49:25 UTC
v.