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 200506082117] 1. Create new Enterprise Application with EJB Module and Web Application. 2. Add Session Bean to EJB Module. 3. Build Enterprise Application. 4. Deploy Enterprise Application. 5. Go to Runtime, under Enterprise Application node and expand your Enterpise Application node. You will see that it contains EJB Module and Web Application. 6. Undeploy your Enterprise Application. 7. Deploy Enterprise Application again. 8. Go to Runtime and now Enterpise Application contains only EJB Module. If you try to open browser with URL under Web Application should be deployed you will get an error. If you skip undeploying (step 6) application will be deployed properly.
Please fix it ASAP. It causes problems in automated tests. Because of issue #53821 I have to always undeploy EAR at the end of my automated tests and it afects next deploy.
did you verify that the ear file has both components in it?
yes, I verified it. When I just repeated deployment after first unsuccessful attempt (without any ather action) it worked.
The issue seems to be on the appserver side. The behaviour is as follows, First deploy is sucecssful. Undeploy and Deploy results in only ejb module being visible in Runtime Tab. But the adminGui shows both the web and ejb sub-components of the app. The AMX api's used by the plugin for Runtime show only ejb module. But trying to access the web module through the browser results in a HTTP 404 error. Redeploy of the app works fine and now both the ejb and web modules are available and the web module can be accessed through the browser.
temporary work around : toggle the Enabled property in the Enterprise App's property sheet and then refresh the Enterprise App folder. The issue seems to be that web-module is not getting loaded after a deploy.
Undeploy through AMX was resulting in a server state wherein, subsequent deploy of the war resulted in the war not being loaded. Deployment is successful and the server does have both the ejb and web modules. Fix is ready, but does the issue need to be escalated to get the fix in?
Is this bug fixed? It seems that I am not able to reproduce it anymore.
Bug fixed in trunk. Diff can be found at, http://serverplugins.netbeans.org/source/browse/serverplugins/sun/appsrvbridge/src/org/netbeans/modules/j2ee/sun/ide/controllers/AppserverMgmtControllerBase.java?r1=1.1&r2=1.2 The issue was fixed in the plugin in serverplugins and now NB build uses the appserver plugin from serverplugins.
verified