在我的tomcat-users.xml中,我有的Tomcat版本7,無法登錄
<tomcat-users>
<role rolename="admin-gui"/>
<role rolename="manager-gui"/>
<user username="admin" password="pass" roles='admin-gui,manager-gui'/>
</tomcat-users>
當我嘗試使用的用戶名和密碼才能訪問http://localhost:8080/manager/html
,它不記錄我,同樣的認證框再次出現。
奇怪的是,我已經在tomcat-users.xml中使用完全相同的內容來嘗試它,它在我的Ubuntu盒子中適用於我。你的環境是什麼?你是如何部署Tomcat的? – 2012-07-18 18:07:22