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.
[Build 20050124] Steps to reproduce: 1) create J2EE aplication with web and ejb module 2) add session bean 3) add servlet and invoke EJB from servlet 4) deploy and run full J2EE application 5) open servlet in editor and invoke 'Run File' Deploying application in domain failed; Error loading deployment descriptors for J2eeApp1-war -- Error: Unresolved <ejb-link>: J2eeApp1-ejb.jar# ... It means that only web module is deployed. The web's 'Run File' task should deploy full J2EE application as far module is part of J2EE app and doesn't deploy only web module.
Might be tricky to solve... How the IDE would always know if a web app is part of another J2EE project or not? Maybe this project is not opened within the IDE? Also, maybe even if the web app is declared in a J2EE app, the user might not want this behaviour (ie. she wants to test the web app as a standalone web app, not part of the j2ee app) So P2 is not the correct priority. The IDE seems to be correct there: it's a user error. a RFE could be used for askin at run time: what do you want to do: run the j2ee app or run the web app, if the IDE detects the web app is part of the J2EE app...
I agree with Ludo, it is not easy to solve it. There is no information in web project if it is a part of J2EE application or not. From this point of view the current behaviour is correct. If the project in which web application is declared is closed, what should happen? I think it is not possible to find out if it is standlone web application or not in this case. Changing to ENHANCEMENT as Ludo proposed. BTW I think the same problem is with EJB module, isn't it?
TM 5.0->TBD