TOMCAT "Access to the requested resource has been denied" 的解決辦法
type Status report
messageAccess to the requested resource has been denied
descriptionAccess to the specified resource (Access to the requested resource has been denied) has been forbidden. 原因:缺少配置一個引數;開啟主目錄下/conf/tomcat-users.xml 檔案,因該在在其中加上一個使用者,並加上roles="manager"以下是一個示例添加了admin,和root,兩個使用者,用這兩個使用者登陸就沒有錯誤了<?xml version='1.0' encoding='utf-8'?>
<role rolename="tomcat"/>
<role rolename="role1"/>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="admin" password="111111" roles="admin,manager"/>
<user username="root" password="root" roles="admin,manager"/>
</tomcat-users> 當然 如果你沒有安裝admin包 那麼需要去下載admin包 預設不帶的 我的測試環境是tomcat 5.5.17