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 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"
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.
user should be informed about this while deploying
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.
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.
Ludo, is this an AS bug?
not AS plugin as this bug will occur for other app servers.... Web project run action should detect this case.
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.
Fixed in trunk: http://web.netbeans.org/source/browse/web/project/src/org/netbeans/modules/web/project/WebActionProvider.java.diff?r1=1.53&r2=1.54 http://web.netbeans.org/source/browse/web/project/src/org/netbeans/modules/web/project/Bundle.properties.diff?r1=1.17&r2=1.18
v