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 53952 - 'Run File' failed for web module that is in j2EE application
Summary: 'Run File' failed for web module that is in j2EE application
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-25 12:24 UTC by Petr Blaha
Modified: 2011-11-28 08:32 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Blaha 2005-01-25 12:24:14 UTC
[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.
Comment 1 _ ludo 2005-01-25 20:38:35 UTC
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...
Comment 2 Radko Najman 2005-02-15 09:18:32 UTC
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?
Comment 3 Jaroslav Pospisil 2006-03-13 13:42:58 UTC
TM 5.0->TBD