Java Blog From WeiChunHua

          Java

          常用鏈接

          統(tǒng)計

          develop

          news

          最新評論

          HTTP Status 403 - Access to the requested resource has been denied

          剛剛解壓版的Tomcat5.0.12,啟動setup.bat后,通過瀏覽器訪問:http://127.0.0.1:8080/admin

          在登錄界面輸入用戶名 both 和密碼 tomcat 后出現(xiàn)下面的錯誤提示:

          HTTP Status 403 - Access to the requested resource has been denied

           

          問題原因:

          D:\Tomcat5.0\conf 目錄下的

          tomcat-users.xml 文件內(nèi)容如下:

          <?xml version='1.0' encoding='utf-8'?>
          <tomcat-users>
             <role rolename="tomcat"/>
             <role rolename="role1"/>
             <user username="tomcat" password="tomcat" roles="tomcat"/>
             <user username="role1" password="tomcat" roles="role1"/>
             <user username="both" password="tomcat" roles="tomcat,role1"/>
          </tomcat-users>

          問題修改:將tomcat-users.xml 文件內(nèi)容改為

          <?xml version='1.0' encoding='utf-8'?>
          <tomcat-users>
             <role rolename="tomcat"/>
             <role rolename="role1"/>
             <role rolename="manager"/>
             <role rolename="admin"/>

             <user username="admin" password="admin" roles="admin,manager"/>
             <user username="tomcat" password="tomcat" roles="tomcat"/>
             <user username="role1" password="tomcat" roles="role1"/>
             <user username="both" password="tomcat" roles="tomcat,role1"/>
          </tomcat-users>

          重新啟動Tomcat ,在登錄時使用 用戶名admin 密碼 admin 登錄即可。

          posted on 2008-06-30 11:00 sunny spring 閱讀(8191) 評論(4)  編輯  收藏 所屬分類: javaee

          評論

          # re: HTTP Status 403 - Access to the requested resource has been denied 2008-09-24 11:25 ace吳

          非常感謝,我的問題解決了  回復(fù)  更多評論   

          # re: HTTP Status 403 - Access to the requested resource has been denied[未登錄] 2009-06-24 11:47 qq

          多謝~!  回復(fù)  更多評論   

          # re: HTTP Status 403 - Access to the requested resource has been denied 2009-07-27 15:27 楊宇

          謝謝  回復(fù)  更多評論   

          # re: HTTP Status 403 - Access to the requested resource has been denied[未登錄] 2010-06-18 10:39 dd

          ole  回復(fù)  更多評論   

          主站蜘蛛池模板: 石渠县| 桃源县| 萝北县| 潮州市| 罗江县| 桐乡市| 桐梓县| 个旧市| 信丰县| 内丘县| 多伦县| 平和县| 河源市| 定日县| 灯塔市| 华安县| 石台县| 县级市| 漠河县| 郎溪县| 宁陵县| 普格县| 三原县| 淮安市| 北宁市| 镇赉县| 卫辉市| 朝阳市| 元江| 香格里拉县| 抚松县| 柯坪县| 广河县| 平顶山市| 资溪县| 大石桥市| 保山市| 金门县| 宜宾市| 车致| 彰武县|