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

Reply via email to