Java Blog From WeiChunHua

          Java

          常用鏈接

          統計

          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 后出現下面的錯誤提示:

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

           

          問題原因:

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

          tomcat-users.xml 文件內容如下:

          <?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 文件內容改為

          <?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 閱讀(8188) 評論(4)  編輯  收藏 所屬分類: javaee

          評論

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

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

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

          多謝~!  回復  更多評論   

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

          謝謝  回復  更多評論   

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

          ole  回復  更多評論   

          主站蜘蛛池模板: 什邡市| 方城县| 巴彦县| 黄冈市| 乐山市| 昆山市| 新河县| 平乡县| 长治市| 固安县| 沧州市| 革吉县| 镇赉县| 西畴县| 镇安县| 菏泽市| 交城县| 开远市| 丰镇市| 徐闻县| 土默特左旗| 石狮市| 辽源市| 衡阳县| 周口市| 赤峰市| 昌图县| 肥东县| 盐源县| 赤城县| 永吉县| 灵石县| 伽师县| 东丰县| 河北省| 游戏| 乌拉特中旗| 白银市| 中江县| 鹰潭市| 河北省|