'failed to upload .war file into tomcat 9.0 server

Using following Curl command to deploy war file at tomcat 9.0

curl "http://XXXX.XXX.XX...:8080/manager/text/undeploy?path=/ROOT" -u admin:Shutdown+app -i --noproxy '*'

curl -F "[email protected]" -X PUT "http://XX.XX..XXX..:8080/manager/text/deploy?path=/ROOT" -u admin:Shutdown+app -i --noproxy '*'

Getting below error , need help

[Pipeline] sh ++ pwd target

  • ./devopsaws-back-deployment/project/Shutdownapp/deploy/deploy.sh qa /Users/jenkins/app/workspace/shutdown-back-pipeline-api-sd@2 ##########start to copy the war file to environment########## % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed

    0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 40 0 40 0 0 118 0 --:--:-- --:--:-- --:--:-- 118 HTTP/1.1 200 Cache-Control: private X-Frame-Options: DENY X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block Content-Type: text/plain;charset=utf-8 Transfer-Encoding: chunked Date: Mon, 24 Jan 2022 10:48:02 GMT

FAIL - No context exists named [/] curl: (26) Failed to open/read local data from file/application



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source