我每次进入manager都报错,tomcat

jeanman 2003-04-02 05:38:27
我每次进入manager都报错:
HTTP Status 403 - Access to the requested resource has been denied

--------------------------------------------------------------------------------

type Status report

message Access to the requested resource has been denied

description Access to the specified resource (Access to the requested resource has been denied) has been forbidden.

...全文
38 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
zxhong 2003-04-02
  • 打赏
  • 举报
回复
$TOMCAT_HOME\webapps\manager\WEB-INF\web.xml
1。在<web-app>和</web-app>之间加入
<security-constraint>
<web-resource-collection>
<web-resource-name>Entire Application</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<!-- NOTE: This role is not present in the default users file -->
<role-name>user</role-name>
</auth-constraint>
</security-constraint>

<!-- Define the Login Configuration for this Application -->
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>TEST ACCESS CONTROL</realm-name>
</login-config>
//如果存在就不用加了,注意下面的东东
2。然后在$TOMCAT_HOME/conf/tomcat-users.xml中加入
<user name="user" password="password" roles="user"/>
roles的名字和web.xml中的相对应

在TOMCAT4.03中测试通过
jeanman 2003-04-02
  • 打赏
  • 举报
回复
还是没用
jeanman 2003-04-02
  • 打赏
  • 举报
回复
设置了。
kmzhen 2003-04-02
  • 打赏
  • 举报
回复
编辑user.xml设置了用户名和口令了吗?报的是访问拒绝错误,你的用户名和口令不对
wafer_w 2003-04-02
  • 打赏
  • 举报
回复
重装

81,091

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧