TOMCAT "Access to the requested resource has been denied" 的解决办法
2009-02-20 10:20
681 查看
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
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
相关文章推荐
- [Tomcat]HTTP Status 403 - Access to the requested resource has been denied
- tomcat HTTP Status 403 - Access to the requested resource has been denied
- HTTP Status 403 - Access to the requested resource has been denied
- HTTP Status 403 - Access to the requested resource has been denied
- HTTP Status 403 - Access to the requested resource has been denied
- HTTP Status 403 – Access to the requested resource has been denied
- Access to the requested resource has been denied
- Access to the requested resource has been denied
- HTTP Status 403 - Access to the requested resource has been denied
- HTTP Status 403 - Access to the requested resource has been denied
- HTTP Status 403 - Access to the requested resource has been denied
- HTTP Status 403 - Access to the requested resource has been denied
- "A transport-level error has occurred when sending the request to the server"的解决办法
- VSS客户端登陆时报“Access to file"...rights.dat" denied”的解决办法
- 如何解决 "Access to the path *** is denied"
- 解决Windows7Windows2K8下的"Windows Cannot Connect To The Printer. Access is Denied"
- 解决docker push镜像时denied: requested access to the resource is denied : docker
- "The requested resource (... processLogin.action) is not available"的问题所在及解决办法
- "Unable to get image data from canvas because the canvas has been tainted by cross-origin data"问题产生原因及解决办法
- 解决“No 'Access-Control-Allow-Origin' header is present on the requested resource”