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 51461 - unable to deploy WebApp with reference to Session bean with local interface
Summary: unable to deploy WebApp with reference to Session bean with local interface
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: Sun SunOS
: P2 blocker (vote)
Assignee: Martin Grebac
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-12 15:33 UTC by Jan Horvath
Modified: 2005-02-14 10:08 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 Jan Horvath 2004-11-12 15:33:44 UTC
build 200411111900

1. have a EJB module, session bean with local
interface only
2. create WebApp 
3. create servlet 
4. Enterprise Resources/Call EJB - select session bean
4. Run project

-deployment fails with message:
"Deployment Error -- Error loading deployment
descriptors for WebApplication9 -- Error:
Unresolved <ejb-link>: Module1Ejb.jar#NewSession"
Comment 1 _ ludo 2004-11-12 15:47:51 UTC
the fact it fails is not a bug, but s feature from the j2ee spec:
You need to package the 2 modules into a J2EE application.
The error message is correct as it is a user error.
Comment 2 Jan Horvath 2004-11-12 16:25:39 UTC
user should be informed about this while deploying 
Comment 3 _ ludo 2004-11-12 16:28:38 UTC
This would be an app server deploy backend issue then.
cannot solve all the possible deploy issue before doing a deploy
withing netbeans. I'll file a bug on the app server product and will
close this one with the corresponding AS bug.
Comment 4 Vince Kraemer 2004-12-01 23:59:36 UTC
It looks like run project needs to be disabled if there is an ejb-link
element in the web.xml.

The active project is the web project, right?  Maybe this needs to be
reassigned into the web component.
Comment 5 Martin Grebac 2005-01-04 09:32:43 UTC
Ludo, is this an AS bug?
Comment 6 _ ludo 2005-01-05 05:27:22 UTC
not AS plugin as this bug will occur for other app servers....
Web project run action should detect this case.
Comment 7 Martin Grebac 2005-01-05 09:13:01 UTC
I see, I'll fix it. But I'd probably rather throw out dialog saying
what's wrong, because disabled run action may be quite confusing for
users - they would have no clue why it is disabled.
Comment 9 Jan Horvath 2005-02-14 10:08:05 UTC
v