tomcat配置jenkins遇到的问题

在执行jenkinks时,遇到以下错误:

原因:未在tomcat/conf中的tomcat-users.xml中配置用户

解决方法:在tomcat/conf/tomcat-users.xml中添加以下代码:

<!--
  <role rolename="tomcat"/>
  <role rolename="role1"/>
  <user username="tomcat" password="tomcat" roles="tomcat"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
  <user username="role1" password="tomcat" roles="role1"/>
-->
<role rolename="admin-gui"/>
<role rolename="admin-script"/>
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<user username="admin" password="redhat123" roles="manager-gui,manager-script,manager-jmx,manager-status,admin-script,admin-gui"/>
</tomcat-users>

  

posted @ 2015-06-06 14:23  阳光温暖了心情  阅读(2594)  评论(0编辑  收藏  举报