[英]Tomcat Application Manager won't authenticate
I'm running a local Tomcat 6.0 server. 我正在运行本地Tomcat 6.0服务器。 I can get to the main admin page from a browser.
我可以从浏览器进入主管理页面。 I've created a user for the Tomcat Application Manager by configuring tomcat-users.xml like so:
我已经通过配置tomcat-users.xml来为Tomcat应用程序管理器创建了一个用户,如下所示:
<tomcat-users>
<role rolename="manager-gui" />
<user username="myUsername" password="myPswd" roles="manager-gui" />
</tomcat-users>
When I type a cmd for TAM eg http://localhost:8080/manager/list , it prompts for credentials w/ the Authentication Required dialog. 当我为TAM键入cmd时,例如http:// localhost:8080 / manager / list ,它会提示输入带有“需要身份验证”对话框的凭据。 I enter myUsername/myPswd, and the dialog just re-prompts for credentials again.
输入myUsername / myPswd,然后对话框再次再次提示输入凭据。
What am I missing here? 我在这里想念什么?
The roles required to use the Manager application in Tomcat 7 were changed from the single manager role in Tomcat 6 to the following four roles: 在Tomcat 7中使用Manager应用程序所需的角色已从Tomcat 6中的单一经理角色更改为以下四个角色:
If you are using Tomcat 6 you need to change the role to "manager". 如果使用的是Tomcat 6,则需要将角色更改为“ manager”。
I had a problem like this too, I don't know if its a problem with my version of the manager/tomcat or if I have a newer tomcat then manager version but I've found that I have to use the legacy role 'manager' despite being on 6.0.x. 我也遇到类似的问题,我不知道这是我的manager / tomcat版本是否存在问题,还是我的tomcat高于经理版本,但是我发现我必须使用旧角色'manager尽管在6.0.x上。
<role rolename="manager" />
<user username="myUsername" password="myPswd" roles="manager" />
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.