Without seeing anything, it would seem that you have bound the plugin to 
multiple phases. Can you share the relevant pom.xml excerpts. I was running the 
tomcat plugin just yesterday and did not see this problem.

On 16 Jan 2021, at 18:13, Dragan Bjedov 
<[email protected]<mailto:[email protected]>> wrote:

Hello,

I have an issue with the Maven web app.
When I hit run, it gets deployed two times.
The Page opened on the first deployment has an error message, but the page 
opened on the second deployment works fine.

This is output log:
Deploying on Apache Tomcat or TomEE
    profile mode: false
    debug mode: false
    force redeploy: true
Undeploying ...
undeploy?path=/spring-security-demo
OK - Undeployed application at context path [/spring-security-demo]
In-place deployment at 
/home/bjedov/NetBeansProjects/spring-security-demo/target/spring-security-demo-1.0-SNAPSHOT
Deployment is in progress...
deploy?config=file%3A%2Ftmp%2Fcontext4118861961478191874.xml&path=/spring-security-demo
OK - Deployed application at context path [/spring-security-demo]
Start is in progress...
start?path=/spring-security-demo
OK - Started application at context path [/spring-security-demo]
Deploying on Apache Tomcat or TomEE
    profile mode: false
    debug mode: false
    force redeploy: true
Undeploying ...
undeploy?path=/spring-security-demo
OK - Undeployed application at context path [/spring-security-demo]
In-place deployment at 
/home/bjedov/NetBeansProjects/spring-security-demo/target/spring-security-demo-1.0-SNAPSHOT
deploy?config=file%3A%2Ftmp%2Fcontext9162120569393006448.xml&path=/spring-security-demo
OK - Deployed application at context path [/spring-security-demo]
Start is in progress...
start?path=/spring-security-demo
OK - Started application at context path [/spring-security-demo]
Note: There are no errors in server logs.

My setup is:
NetBeans 12.2
Apache Tomcat 9.0.41
Java: 15.0.1; OpenJDK 64-Bit Server VM 15.0.1+9 (Zulu JDK 15)
OS: Ubuntu 20.04

What is the problem here?

Kind regards,

Dragan Bjedov, MSc



CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024. Cerner Limited, Registered in 
England no 2519305, Registered Office 37 North Wharf Road, London W2 1AF.

Reply via email to