type Status report

messageAccess to the requested resource has been denied

descriptionAccess to the specified resource (Access to the requested resource has been denied) has been forbidden.
 
 
 
原因:缺少配置一个参数;打开主目录下\conf\tomcat-users.xml 文件,因该在在其中加上一个用户,并加上roles="manager"以下是一个示例添加了admin,和root,两个用户,用这两个用户登陆就没有错误了

<?xml version='1.0' encoding='utf-8'?>

<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="admin" password="111111" roles="admin,manager"/>
<user username="root" password="root" roles="admin,manager"/>
</tomcat-users>
 
 当然 如果你没有安装admin包 那么需要去下载admin包 默认不带的
 
我的测试环境是tomcat 5.5.17