【发布时间】:2009-09-06 12:25:02
【问题描述】:
问题
拥有管理员角色的用户无法访问 tomcat 管理员页面。
我尝试做的事情
我在 tomcat-users.xml 中添加了一个具有管理员角色的用户:
<role rolename="manager"/>
<user username="emanemos" password="password" roles="manager"/>
我还查看了 $CATALINA_HOME/webapps/manager/WEB-INF/web.xml 以确保管理员角色确实用于访问应用程序:
<auth-constraint>
<!-- NOTE: This role is not present in the default users file -->
<role-name>manager</role-name>
</auth-constraint>
<!-- Define the Login Configuration for this Application -->
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Tomcat Manager Application</realm-name>
</login-config>
<!-- Security roles referenced by this web application -->
<security-role>
<description>
The role that is required to log in to the Manager Application
</description>
<role-name>manager</role-name>
</security-role>
但是,管理器应用程序仍然会在无休止的循环中要求输入登录密码对,而忽略我的输入。
有人有什么想法吗?
【问题讨论】:
-
我也面临同样的问题:HTTP Status 404 The requested resource (/manager/html) is not available。我没有重新安装 tocmat 的选项,因为它与其他一些软件一起提供。希望有人知道如何解决这个问题。