Re: Maven Web App deployment

2021-01-18 Thread Dragan Bjedov
My problem is the same as described in the issue.

пон, 18. јан 2021. у 18:47 Vlad Palnik  је написао/ла:

> Known issue in 12.2
>
> see: https://issues.apache.org/jira/browse/NETBEANS-5143
>
> This email and any attachments may contain confidential and privileged
> information. If you are not the intended recipient, please notify the
> sender immediately by return email, delete this email and destroy any
> copies. Any dissemination or use of this information by a person other than
> the intended recipient is unauthorized.
>
>
> On Mon, Jan 18, 2021 at 8:55 AM Luff,Chris 
> wrote:
>
>> 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  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=/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=/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.
>>
>

-- 

MSc Dragan Bjedov


Re: Maven Web App deployment

2021-01-18 Thread Vlad Palnik
Known issue in 12.2

see: https://issues.apache.org/jira/browse/NETBEANS-5143

This email and any attachments may contain confidential and privileged
information. If you are not the intended recipient, please notify the
sender immediately by return email, delete this email and destroy any
copies. Any dissemination or use of this information by a person other than
the intended recipient is unauthorized.


On Mon, Jan 18, 2021 at 8:55 AM Luff,Chris 
wrote:

> 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  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=/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=/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.
>


Re: Maven Web App deployment

2021-01-18 Thread Luff,Chris
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 
mailto:draganbje...@gmail.com>> 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=/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=/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.