You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Andrew (Jira)" <ji...@apache.org> on 2020/12/15 05:02:00 UTC

[jira] [Commented] (NETBEANS-5143) NetBeans 12.2 deploys webapps twice

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

Andrew commented on NETBEANS-5143:
----------------------------------

I came here to report the same issue: NetBeans 12.2 deploys WAR project twice on the server. I my case I have Payara Server 5.2020.7 defined in NetBeans->Services. Tested on two WAR projects, behaviour the same, war deployed twice. Switching back to 12.1 - resolves the issue and war deployed as intended. Thanks!

> NetBeans 12.2 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
>         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 (only 12.2 is 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,
>  
> I've come across a possible bug in NetBeans 12.2. Netbeans seems to interfere with the deployment of apps somehow and 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 only appears when using NB 12.2
>  
> 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
> 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: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

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