openIDP icon indicating copy to clipboard operation
openIDP copied to clipboard

Unable to deploy war file

Open ctproject4 opened this issue 6 years ago • 8 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 avatar Dec 18 '18 14:12 ctproject4

@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.

jaskirat8 avatar Dec 21 '18 07:12 jaskirat8

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

ctproject4 avatar Dec 21 '18 10:12 ctproject4

@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 avatar Dec 24 '18 11:12 Chids-gs

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

ctproject4 avatar Dec 26 '18 09:12 ctproject4

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

snj07 avatar Dec 31 '18 10:12 snj07

@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 avatar Jan 07 '19 04:01 jaskirat8

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

ctproject4 avatar Jan 07 '19 09:01 ctproject4

@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?

krishnakanthbn avatar Mar 26 '19 16:03 krishnakanthbn