openIDP
openIDP copied to clipboard
Unable to deploy war file
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
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.
Thanks!
@ctproject4 . Few suggestions
- can you check in your workspace and confirm if the war file is generated?
- 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?