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 244436 - deploy a second web app should not undeploy the existing app
Summary: deploy a second web app should not undeploy the existing app
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WildFly (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: ehsavoie
URL:
Keywords:
: 244484 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-05-12 08:16 UTC by verydapeng
Modified: 2014-05-20 02:49 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (61.87 KB, text/plain)
2014-05-12 08:16 UTC, verydapeng
Details
two empty web apps to demo the problem (5.39 KB, application/zip)
2014-05-14 04:55 UTC, verydapeng
Details
exit netbeans, blocked by some rogue process (98.41 KB, image/png)
2014-05-14 04:57 UTC, verydapeng
Details

Note You need to log in before you can comment on or make changes to this bug.
Description verydapeng 2014-05-12 08:16:22 UTC
Product Version = NetBeans IDE 8.0 (Build 201403101706)
Operating System = Linux version 3.13.0-24-generic running on amd64
Java; VM; Vendor = 1.8.0
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.0-b70

org.netbeans.modules.javaee.wildfly/1 [1.0.14 20140406-6b8f0c9f21e7]

we are migrating from glassfish to wildfly (8.1.0 CR1), now we have this problem

steps to reproduce

1. create maven webapp demo1
2. run demo1
3. create maven webapp demo2
4. run demo2
5. now check demo1 is undeployed (404)

this is quite a blocker, becuase our system is divided into several independently deployable wars
Comment 1 verydapeng 2014-05-12 08:16:26 UTC
Created attachment 147225 [details]
IDE log
Comment 2 ehsavoie 2014-05-12 11:48:01 UTC
Are your wars part of the same ear ?
I haven't met this issue before and I don't remember undeploying any other app than the app being deployed or undeployed.
Is there some kind of relationship between the apps ?
Comment 3 verydapeng 2014-05-13 02:39:40 UTC
two totally unrelated wars, thats why this bothers me. we have a lot of client only wars (js,html,css) and a lot of json service only wars
Comment 4 ehsavoie 2014-05-13 09:44:13 UTC
I'll try to take a look before the end of next week.
Did you try this on WildFly 8.0 ?
Comment 5 verydapeng 2014-05-13 10:16:23 UTC
will give 8.0 a try tmr

(In reply to ehsavoie from comment #4)
> I'll try to take a look before the end of next week.
> Did you try this on WildFly 8.0 ?
Comment 6 verydapeng 2014-05-14 04:53:52 UTC
tried on 

8.0.0.Final
8.1.0.CR1
8.1.0.CR2 

all having the same problem



(In reply to ehsavoie from comment #4)
> I'll try to take a look before the end of next week.
> Did you try this on WildFly 8.0 ?
Comment 7 verydapeng 2014-05-14 04:55:39 UTC
Created attachment 147252 [details]
two empty web apps to demo the problem
Comment 8 verydapeng 2014-05-14 04:57:22 UTC
Created attachment 147253 [details]
exit netbeans, blocked by some rogue process
Comment 9 verydapeng 2014-05-14 04:59:12 UTC
not sure whether it is related or not, see my comment above, when i click "exit", netbeans is blocked by this rogue process. in the meanwhile i do NOT see the normal process bar on the status bar ...
Comment 10 ehsavoie 2014-05-16 09:01:17 UTC
*** Bug 244484 has been marked as a duplicate of this bug. ***
Comment 11 darya 2014-05-17 07:48:18 UTC
i agree with verydapeng this error blocks the development process badly.
Comment 12 darya 2014-05-17 07:57:07 UTC
in contrast to verydapeng's environment mine is:

Java version: 1.7.0_45, vendor: Oracle Corporation
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 8", version: "6.2", arch: "amd64", family: "windows"
Comment 13 Quality Engineering 2014-05-20 02:49:33 UTC
Integrated into 'main-silver', will be available in build *201405200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/03aafba06037
User: Emmanuel Hugonnet <ehsavoie@netbeans.org>
Log: Fixing #244436: Deploying a second webapp should not undeploy an exisiting app.
When no contest root was defined throught a jboss-web.xml then it was set to "" instead of the war archive name.
Thus every running app was matching against "" and was undeployed.