Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5143

NetBeans 12.2, 12.3, 12.4 deploys webapps twice

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 12.2, 12.3, 12.4
    • 12.5
    • core
    • 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/12.4 are effected)
      Tomcat (new installs): 8.5.60, 9.0.40, Payara (per Patrick Musembi)

    Description

      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/12.4.
       
      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 Clean -> 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 make sure same server and java versions are selected
      7 Clean -> 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]
       
       

      Attachments

        Issue Links

          Activity

            People

              jgauravgupta Gaurav Gupta
              vladpaln Vlad Palnik
              Votes:
              3 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m