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 245240

Summary: A war project is being deployed twice
Product: serverplugins Reporter: Kolchinmax
Component: WildFlyAssignee: ehsavoie <ehsavoie>
Status: VERIFIED FIXED    
Severity: normal CC: anebuzelsky, mmirilovic, pjiricka, vriha
Priority: P1    
Version: 8.0   
Hardware: PC   
OS: Windows 7 x64   
Issue Type: DEFECT Exception Reporter:
Attachments: Netbeans and Wildfly logs

Description Kolchinmax 2014-06-25 16:29:02 UTC
Created attachment 147771 [details]
Netbeans and Wildfly logs

Environment:
 - NetBeans IDE 8.0 (Build 201403101706)
 - Wildfly 8.1.0 + the Wildfly plugin 1.0.16

Steps to reproduce the issue:
 1) Create a Web Application (Java Web -> Web Application),
 2) Choose Java EE 7 Web profile,
 3) Run the project and in the result it'll be deployed and in a second redeployed automatically.
Comment 1 Puls 2014-07-10 12:10:56 UTC
I am encountering the same problem. 

My setup is a Maven web application deployed to Wildfly 8.1 Final.

When I hit run it deplyos and immediately redeploys the application.
Comment 2 Sergey Petrov 2014-07-16 15:45:26 UTC
Why is it P1, is there any major problem from 2nd redeploy except some slowdown on startup?
Comment 3 Puls 2014-07-18 07:38:43 UTC
(In reply to Sergey Petrov from comment #2)
> Why is it P1, is there any major problem from 2nd redeploy except some
> slowdown on startup?

It's mainly the slowdown. But remember that it can be very substantial for big projects (at least for us on wildfly it takes quite some time).
Comment 4 Kolchinmax 2014-07-18 08:10:19 UTC
(In reply to Sergey Petrov from comment #2)
> Why is it P1, is there any major problem from 2nd redeploy except some
> slowdown on startup?

In my case it's impossible to use the plugin, because before each deployment I have to manually delete some files that are locked while a JVM is running. The reason is a file descriptor leak in a third party library that I didn't fix yet.

But of course for a small project and without such a leak, it's not a problem at all.
Comment 5 ehsavoie 2014-08-06 07:38:40 UTC
Don't 'start' the application after deploying it as an exploded deployment is autostarted.
Comment 6 Vladimir Riha 2014-08-06 15:23:27 UTC
Seems OK to me, I tried to run Ant/Maven based Java Web Applications and they were deployed only once.

Please proceed with transplantation to release801. Thank you

WildFly plugin 1.1
Product Version: NetBeans IDE Dev (Build web-main-1138-on-20140806)
Java: 1.8.0_11; Java HotSpot(TM) 64-Bit Server VM 25.11-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_11-b12
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 7 Vladimir Riha 2014-08-13 11:16:32 UTC
Verified in 8.0.1

Product Version: NetBeans IDE 8.0.1 RC1 (Build 201408122300)
Java: 1.8.0_11; Java HotSpot(TM) 64-Bit Server VM 25.11-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_11-b12
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)