Monday, 18 April 2016

jenkins tomcat 401 Unauthorized

jenkins tomcat 401 Unauthorized

org.codehaus.cargo.container.tomcat.internal.TomcatManagerException: The username and password you provided are not correct (error 401)

tomcat 401 Unauthorized

You are not authorized to view this page. If you have not changed any configuration files, please examine the file conf/tomcat-users.xml in your installation. That file must contain the credentials to let you use this webapp.

org.codehaus.cargo.container.ContainerException: Failed to redeploy [/var/lib/jenkins/jobs/../..SNAPSHOT.war]
at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(

solution : goto tomcat "conf " directory and open tomcat-user.xml.

check two things.

1) uncomment below code

<role rolename="manager-gui"/>
<user name="tomcat" password="s3cret" roles="standard,manager-gui"/>

2) or add "standard" in the roles.


  1. Your blog has given me that thing which I never expect to get from all over the websites. Nice post guys!

    web developer

  2. I read this article. I think You put a lot of effort to create this article. I appreciate your work.
    thesis Writing Service

  3. Yes. I also found this article useful. Thanks very much