HTTP 401 Error When Trying to Deploy Spring App via Gradle and Jenkins on a Tomcat 7 Server HTTP 401 Error When Trying to Deploy Spring App via Gradle and Jenkins on a Tomcat 7 Server jenkins jenkins

HTTP 401 Error When Trying to Deploy Spring App via Gradle and Jenkins on a Tomcat 7 Server


401 means "Unauthorized".
  1. Try to check your credentials.
  2. Last time when I deploy my app to Tomcat7 I use this link:

    localhost/manager/text/html
  3. Can you deploy this app without jenkins only using gradle ?

  4. Very simple (temporary) solution is (if you deploy app on the same machine) is to copy war in Tomcat ${catalina.home}/webapps directory. When war is copied Tomcat expand this to desired url. Then you need to restart is to be sure that all caches is clear.


In my case, we simply had to update the Jenkins deploy plugin.