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 57812

Summary: Child modules remain registered in app after removing
Product: javaee Reporter: Martin Adamek <madamek>
Component: EARAssignee: Vince Kraemer <vkraemer>
Status: RESOLVED FIXED    
Severity: blocker Keywords: SIMPLEFIX
Priority: P3    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Martin Adamek 2005-04-13 07:54:27 UTC
In EAR project properties (Packaging - I hope it's correct way to remove child
modules) remove modules. ProjectEar.getChildModuleProviders() still returns all
of them. 
Can be easy reproduced with Call EJB dialog:
1. create Enterprise app wit EJB and Web module
2. create new Session bean with local interface
3. create new servlet
4. in servlet's code invoke Call Enterprise Bean action, you can select Session
bean and OK button is enabled.
5. Cancel dialog
6. In properties/packaging of application remove all modules
7. Invoke Call EJB in servlet once again, you can still select Session bean and
have enabled OK button
8. Restart IDE and try Call EJB from servlet once again, now everything is OK
Comment 1 Vince Kraemer 2005-04-13 17:45:32 UTC
forgot to remove the item/key from the map that holds the J2eeModuleProvider object.
Comment 2 Vince Kraemer 2005-04-20 23:17:39 UTC
j2ee/earproject/.../ProjectEar.java (rev 1.11)