I'm trying to configure automatic app deployment to Tomcat server using Jenkins. Tomcat runs as a docker container:
$ docker run --rm --name tomcat tomcat
I've configured Jenkins build, but it fails at deployment step. Here is what's in Output:
org.codehaus.cargo.container.ContainerException: Failed to redeploy [/var/jenkins_home/workspace/Tomcat_sample_app_autodeploy/sample.war]
[stack trace here]
Caused by: java.io.FileNotFoundException: http://tomcat:8080/manager/text/list
Here is described that two things could possibly cause that problem and one of these is: "manager" not present in webapps
folder. And indeed webapp
directory in my container looks empty:
At the same time I can see in many tutorials that this manager is available out-of-the-box with Tomcat.
Has something changed in that matter? Do I need to somehow configure that manager
manually?