Infosys / openIDP

An open source platform to accelerate and scale DevOps adoption across the enterprise. Contact IDP_OSS@infosys.com for any queries or for latest updates.

Home Page:https://www.infosys.com/services/agile-devops/offerings/infosys-devops-platform.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to deploy war file

ctproject4 opened this issue · comments

I'm trying to build and deploy maven project. Build Job is running properly after triggering the pipeline and it also creates .war file. The deployment Job also seems normal and executing successful but after opening the url in tomcat server 404 Page Not Found error use to come. I've tried to deploy the war file on the same tomcat server in which jenkins is running. Also I tried to deploy it onto another machine as well. But still no luck. When I went inside the tomcat manager folder(inside the container) where jenkins.war file is located, I'm unable to find my deployed war file. I'm attaching the log files of Deploy Job as well as Pipeline Job. Kindly help me!

Deploy_Job_Logs.txt
Piepline_logs.txt

jenkins_page

Thanks

@ctproject4 It will be helpful if you can attach screen shot of your "Deploy Page" and "Code Page" in IDP UI. As i can see there is nothing configured as per logs.

Thanks for your reply. I'm attaching the screenshots.
deploypage2
code_page
deploy_page1
Thanks!

commented

@ctproject4 . Few suggestions

  1. can you check in your workspace and confirm if the war file is generated?
  2. If yes, in the deploy section, can you replace the war file path to **/*.war

@Chids-gs Yes the workspace contains .war file after build stage. And I also tried using target/**/*.war.
Still no luck!

Can you confirm if tomcat user which you put in the input field has manager-script permission?

@ctproject4 We hope you have tried the suggestions by @Chids-gs @snj07 .
Update this thread in-case you still face the issue.

  • This issue will auto close in 3 days on account of no activity.

@jaskirat8 Yes I tried the suggestions given by @snj07 and @Chids-gs. Still no luck!

@ctproject4 Hi. Hope the issue is resolved. Can you please confirm if you see the Tomcat deploy section in the Deploy Job configuration in Jenkins?