发布网友 发布时间:2023-03-29 21:21
共1个回答
热心网友 时间:2023-11-01 12:52
<!-- ===================================================================================================== -->用tomcat tomcat登陆 但是显示信息如下:HTTP Status 403 - Access to the requested resource has been denied--------------------------------------------------------------------------------type :Status reportmessage: Access to the requested resource has been denieddescription: Access to the specified resource (Access to the requested resource has been denied) has been forbidden.--------------------------------------------------------------------------------Apache Tomcat/5.0.30<!-- ===================================================================================================== -->修改tomcat5028\conf\Catalina\localhost\manager.xml<Context path="/manager" docBase="D:/tomcat5028/server/webapps/manager"debug="0" privileged="true"><!-- Link to the user database we will get roles from --><ResourceLink name="users" global="UserDatabase"type="org.apache.catalina.UserDatabase"/></Context>docBase为你的实际情况tomcat5028\conftomcat-users.xml添加用户,我的如下,你可以参照着改就可以了,用lixh,password:lixh就可以了<?xml version='1.0' encoding='utf-8'?><tomcat-users><role rolename="tomcat"/><role rolename="role1"/><role rolename="manager"/>