hudson发布构建工程到tomcat 7错误,错误日志如下:
org.codehaus.cargo.container.tomcat.internal.TomcatManagerException: The username you provided is not allowed to use the text-based Tomcat Manager
这个问题是因为对于tomcat 7的user的权限定义引起的,可查看http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html#Configuring_Manager_Application_Access, 摘录如下
manager-gui — Access to the HTML interface.
manager-status — Access to the "Server Status" page only.
manager-script — Access to the tools-friendly plain text interface that is described in this document, and to the "Server Status" page.
manager-jmx — Access to JMX proxy interface and to the "Server Status" page.
必须把部署用户的权限定义为“manager-script”,才可以成功部署。
Tomcat7部署权限配置
本文介绍了在使用Hudson进行构建工程并部署到Tomcat7时遇到的权限问题及解决方案。详细解释了不同用户角色的权限,并指出部署用户必须设置为“manager-script”级别才能成功部署。
1479

被折叠的 条评论
为什么被折叠?



