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 49655 - need to delete <ejb> from vendor specific DD on bean deletion
Summary: need to delete <ejb> from vendor specific DD on bean deletion
Status: CLOSED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-28 18:36 UTC by Rajeshwar Patil
Modified: 2006-03-24 12:49 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 2004-09-28 18:36:56 UTC
Element <ejb> should be removed from sun-ejb-jar.xml 
on bean/bean class deletion
Comment 1 Rajeshwar Patil 2004-09-29 01:54:13 UTC
Handling xpath deletion event[fireXpathEvent(XpathEvent xpathEvent)]
to remove the child DConfigBean. We need to handle this event as we
are not getting the call *removeDConfigBean()* for removed beans.

File Modified: EjbJarRoot.java  revision: 1.33
Comment 2 Petr Blaha 2004-10-13 10:45:29 UTC
Move issues from temprorary component.
Comment 3 Petr Blaha 2004-11-25 14:24:15 UTC
[Build 20041124]
Comment 4 Rochelle Raccah 2005-03-11 22:53:31 UTC
This fix is causing a BeanNotFoundException on delete (see below).  After a
discussion with Peter, it seems the problem is that now the j2eeserver problem
this worked around is fixed, so removeDConfigBean is being called twice.

javax.enterprise.deploy.spi.exceptions.BeanNotFoundException: No match for bean
at 'org.netbeans.modules.j2ee.deployment.config.StandardDDImpl@1b22cc7', xpath =
'/ejb-jar/enterprise-beans/entity'.
	at
org.netbeans.modules.j2ee.sun.share.configBean.Base.removeDConfigBean(Base.java:476)
	at
org.netbeans.modules.j2ee.sun.share.configBean.EjbJarRoot.removeDConfigBean(EjbJarRoot.java:319)
[catch] at
org.netbeans.modules.j2ee.deployment.config.ConfigBeanStorage.remove(ConfigBeanStorage.java:89)
	at
org.netbeans.modules.j2ee.deployment.config.ConfigBeanStorage.removeChild(ConfigBeanStorage.java:178)
	at
org.netbeans.modules.j2ee.deployment.config.ConfigBeanStorage.fireEvent(ConfigBeanStorage.java:141)
	at
org.netbeans.modules.j2ee.deployment.config.DDCommon.fireEvent(DDCommon.java:231)
	at
org.netbeans.modules.j2ee.deployment.config.DDCommon.fireEvent(DDCommon.java:238)
....
Comment 5 Vince Kraemer 2005-03-12 01:14:01 UTC
I will look at it...  I have some recent changes/experience in the dcb tree...
Comment 6 Sherold Dev 2005-03-14 08:14:29 UTC
The removeDConfigBean method is now being called twice, once directly from the
j2eeserver (this call can be seen in the stack trace above) and second time from
the EjbJarRoot.fireXpathEvent - this call should be removed.
Comment 7 _ pcw 2005-03-14 08:31:50 UTC
Vince - I already emailed Rajeshwar about this one so make sure you sync up with
him if you do anything.  There is nothing to explore really, the original "fix"
for this problem needs to be removed because it isn't correct and no longer
applies.  The real problem has been fixed.
Comment 8 Vince Kraemer 2005-03-14 16:58:45 UTC
I tried deleting the whole listener to test if the issue really was resolved.  I
still ended up with the ejb in the sun-ejb-jar.xml....  Should we just remove
the call to removeDConfigBean from the listener but keep the rest, or transfer
the "extra" stuff in the listener into the removeDConfigBean impl?
Comment 9 Rochelle Raccah 2005-03-15 01:56:30 UTC
If you mean the xpath listener, please do not delete the whole thing, as that is
where the implementation of the fix for issue 54867 is.
Comment 10 Vince Kraemer 2005-03-15 07:18:19 UTC
Commented out the call to removeDConfigBean() that was in the listener.  This seeems to be doing the 
right thing.  Ludo has updated the scrambled NBM already.
Comment 11 Petr Blaha 2005-07-11 12:31:46 UTC
build 20050706