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.
扫描二维码关注公众号,回复:
369141 查看本文章
manager-jmx — Access to JMX proxy interface and to the "Server Status" page.
必须把部署用户的权限定义为“manager-script”,才可以成功部署。