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 59802 - EAR is deployed without WAR
Summary: EAR is deployed without WAR
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Nitya Doraisamy
URL:
Keywords: T9Y
Depends on:
Blocks:
 
Reported: 2005-06-09 16:44 UTC by L Martinek
Modified: 2005-09-13 10:48 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 L Martinek 2005-06-09 16:44:05 UTC
[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.
Comment 1 L Martinek 2005-06-10 15:40:55 UTC
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.
Comment 2 Vince Kraemer 2005-06-10 17:09:34 UTC
did you verify that the ear file has both components in it?
Comment 3 L Martinek 2005-06-10 17:27:05 UTC
yes, I verified it. When I just repeated deployment after first unsuccessful
attempt (without any ather action) it worked.  
Comment 4 Nitya Doraisamy 2005-06-10 18:25:24 UTC
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. 
Comment 5 Nitya Doraisamy 2005-06-10 18:55:19 UTC
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.
Comment 6 Nitya Doraisamy 2005-06-10 22:24:00 UTC
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?
Comment 7 L Martinek 2005-07-22 10:09:13 UTC
Is this bug fixed? It seems that I am not able to reproduce it anymore.
Comment 8 Nitya Doraisamy 2005-07-22 17:39:55 UTC
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. 
Comment 9 L Martinek 2005-09-13 10:48:36 UTC
verified