[ 
https://issues.apache.org/jira/browse/NETBEANS-5143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17354641#comment-17354641
 ] 

Geertjan Wielenga commented on NETBEANS-5143:
---------------------------------------------

The person reporting this notes that this issue does not occur with NetBeans 
12.1.

So, what everyone encountering this issue is going to have to do is be very 
explicit about their environment as well as the very specific steps to 
reproduce the problem. Otherwise this will not get fixed.

> NetBeans 12.2, 12.3, 12.4 deploys webapps twice
> -----------------------------------------------
>
>                 Key: NETBEANS-5143
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5143
>             Project: NetBeans
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 12.2, 12.3, 12.4
>         Environment: Windows 10 20H2/AMD Ryzen 7 4800H/32GB RAM
>  java: build 11.0.9.1+1, maven 3.6.3
>  Netbeans versions tested: 12.1, 12.2, 12.3, 12.4 (12.2/12.3/1.4 are effected)
>  Tomcat (new installs): 8.5.60, 9.0.40, Payara (per Patrick Musembi)
>            Reporter: Vlad Palnik
>            Priority: Major
>              Labels: webapp, webapp-deployment
>
> To whomever it concerns,
>   
>  Bug in NetBeans 12.2, 12.3, 12.4. Netbeans seems to interfere with the 
> deployment of web apps somehow and web apps are deployed twice.
>   
>  While deploying an app it follows this pattern: deploy => undeploy => deploy 
> (see build log below). I tried solving this issue by undeployed any previous 
> versions of the app manually and restarted Tomcat, the same error occurs. The 
> issue appears when using NB 12.2, 12.3
>   
>  When tested on NetBeans 12.1 using the same Java/Tomcat installation/config 
> no errors occur and deployment proceeds correctly.
>   
>  Steps to replicate:
>  1: Create maven webapp (Java EE7, Java 11) in NetBeans 12.1
>  2 Set Tomcat Server in Properties > Run
>  3. Build/Run project in 12.1, you will get a "Hello World" basic site.
>  4. Check build log, only a single deploy should show up.
>  5 Close 12.1 and open same project in 12.2/12.3/12.4
>  6 Before run/build make sure same server and java versions are selected
>  7 Build/Run project
>  8 Check build log, you will see two deploys of webapp
>   
>   
>  BUILD SUCCESS
>  ------------------------------------------------------------------------
>  Total time:  18.211 s
>  Finished at: 2020-12-11T17:27:08-08:00
>  ------------------------------------------------------------------------
>  Deploying on Tomcat 8.5.60
>      profile mode: false
>      debug mode: false
>      force redeploy: true
>  Starting Tomcat process...
>  Waiting for Tomcat...
>  Tomcat server started.
>  In-place deployment at C:\Users\username\Desktop\myapp\target\myapp##1.2.5
>  Deployment is in progress...
>  
> deploy?config=file%3A%2FC%3A%2FUsers%2Fusername%2FAppData%2FLocal%2FTemp%2Fcontext6407158500266578550.xml&path=/myapp
>  OK - Deployed application at context path [/myapp]
>  Start is in progress...
>  start?path=/myapp
>  OK - Started application at context path [/myapp]
>  Deploying on Tomcat 8.5.60
>      profile mode: false
>      debug mode: false
>      force redeploy: true
>  Undeploying ...
>  undeploy?path=/myapp
>  OK - Undeployed application at context path [/myapp]
>  In-place deployment at C:\Users\username\Desktop\myapp\target\myapp##1.2.5 
>  Deployment is in progress...
>  
> deploy?config=file%3A%2FC%3A%2FUsers%2Fusername%2FAppData%2FLocal%2FTemp%2Fcontext3519987589623367889.xml&path=/myapp
>  OK - Deployed application at context path [/myapp]
>  Start is in progress...
>  start?path=/myapp
>  OK - Started application at context path [/myapp]
>   
>   



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to