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 55181 - [ejb] delete ws does not remove entry from sun-ejb-jar.xml
Summary: [ejb] delete ws does not remove entry from sun-ejb-jar.xml
Status: CLOSED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Rajeshwar Patil
URL:
Keywords:
Depends on:
Blocks: 55276
  Show dependency tree
 
Reported: 2005-02-18 12:57 UTC by Lukas Jungmann
Modified: 2006-03-24 12:50 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 Lukas Jungmann 2005-02-18 12:57:38 UTC
[pre-beta 200502180835]

1. create new EJB module
2. create new web service
3. delete this web service (invoke delete in ws
node's context menu)

=> relevant elements from sun-ejb-jar.xml should
be removed

workaround1: remove elements ejb where
ejb-name=deletedBeanName from sun-ejb-jar.xml
manually 

workaround2: add some bean to the project (entries
mentioned above are removed automatically)
Comment 1 Martin Grebac 2005-02-22 15:46:32 UTC
ejb-jar is handled correctly, so assume this is a plugin problem
Comment 2 _ ludo 2005-03-17 05:42:12 UTC
Rajeshwar, please investigate and update the evaluation.
Could be an event bug or a plugin bug.
Comment 3 Rajeshwar Patil 2005-03-17 19:38:00 UTC
No more valid in current builds. Verified in trunk build.

Comment 4 Lukas Jungmann 2005-03-23 16:06:39 UTC
I've just reproduced this in build 200503221900
Comment 5 Rajeshwar Patil 2005-03-23 19:28:58 UTC
I know what the problem is. If you create a new module, add web-service to it
and delete web-service everything works(bean and all the entries in DDs get
deleted).
If you create an ejb module, add web-service to it, restart ide and delete
web-service then sun DD entries are not getting deleted. The is because the
configuration is not getting initialized in the second case.
Comment 6 _ pcw 2005-03-23 20:16:52 UTC
Rajeshwar is correct, I just checked the web service removal code and it does
not call ensureConfigurationReady().
Comment 7 _ pcw 2005-03-23 20:25:40 UTC
For future reference, with regard to bound elements (those represented by
DConfigBeans), the plugin does not have any control over which elements in the
sun-xxx files are created or destroyed.  J2eeserver module controls that
directly via JSR-88 and the modules that manipulate the standard descriptor
files control it indirectly.
Comment 8 Rajeshwar Patil 2005-03-23 22:09:32 UTC
File Modified:
j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/EjbJarWebServicesSupport.java

new revision: 1.18; previous revision: 1.17
Comment 9 Lukas Jungmann 2005-04-03 23:25:45 UTC
v. 200504031800