Cannot host Spring web app war on Tomcat using Jenkins plugin
Can you help me to deploy my project to Tomcat container using Jenkins?
In build step I use script file
buildscript-no-launch.bash
:
This one works well. But then I use post-build step Deploy war/ear to a container
6 Replies
⌛
This post has been reserved for your question.
Hey @Tomasm21! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
It gets deployed:
But once I open it then it's not found:
frontend homepage is
/Maitinimas
But http://localhost:2020/Maitinimas-0.0.1/Maitinimas
and http://localhost:2020/Maitinimas
also does not work.
In application.properties
I have server.servlet.context-path=/Maitinimas
.
--------------------------------
But if in the build bash file I use embedded tomcat:
Then the tomcat server starts in the terminal and I can succesfully load my web app on http://localhost:8081/Maitinimas
I have installed Apache Tomcat/9.0.95 on my PC on Windows.
And it's really strange that Jenkins post-build step is not working as it should. I don't know why.
Maybe the step works because the project is passed to the Tomcat. And the app is in the list. But it can't be found. I don't know particular reason.💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.