求助:tomcat Administration配置登陆问题

zhuifeng1 2004-10-13 01:48:34
想利用tomcat的Administration工具进行数据库配置工作,打开tomcat/conf/tomcat_users.xml文件,里面提供了角色tomcat,both,role1,利用提供的角色登陆,访问都被拒绝,查资料,发现了一篇文章说这样该就能登陆了:
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
<font color=="red">
<role rolename="manager"/>
<role rolename="admin"/>
<user username="fogu" password="lixin" roles="admin,manager"/>
</font>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
</tomcat-users>

可是我这样改了,还是不能登陆,出现了下面这样的错误,请问要怎样修改才能登陆管理。

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.


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

Apache Tomcat/5.0
...全文
78 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhuifeng1 2004-10-20
  • 打赏
  • 举报
回复
我改成这样还是不行,
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
</tomcat-users>
报告错误:同上
请高手指点
howell008 2004-10-18
  • 打赏
  • 举报
回复
不能解析<font>
把 <font color=="red">和 </font>删掉试试看
zhuifeng1 2004-10-18
  • 打赏
  • 举报
回复
我的计算机出了点问题,我几天没用了。今天一点击TOMCAT的启动文件,画面一闪而过,什么也没了。
不知道为什么?
zhuifeng1 2004-10-13
  • 打赏
  • 举报
回复
怎么没人回答?高手请指点指点吧。

5,655

社区成员

发帖
与我相关
我的任务
社区描述
Web开发应用服务器相关讨论专区
社区管理员
  • 应用服务器社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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