本文介绍了使用"manager-script"设置正确的用户名和密码.在Tomcat中的角色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道这已经问过很多.但是我已经将用户设置为"manager-script"角色.
I know this has been asked many before. But I have already placed my user to role "manager-script".
在尝试部署时,我一直收到这个消息:
I keep getting this when trying to deploy:
我的D:\DEV\apache-tomcat-7.0.47\conf\tomcat-users.xml
:
<?xml version="1.0" encoding="UTF-8"?>
<tomcat-users>
<role rolename="manager-script"/>
<user username="user" password="user" roles="manager-script"/>
</tomcat-users>
服务器启动正常,没有来自netbeans的错误,但是当我进行部署时,它不断询问我具有"manager-script"的凭据.
The server starts just fine without errors from netbeans but when I go to deploy, it keep asking me for the credentials that has "manager-script".
我尝试过的事情:
- 删除所有其他Apache安装/目录.
- 重新启动.
- 两次,三次和四次检查用户名和密码(用户@用户).
- Removing all other Apache installs/directories.
- Rebooting.
- Double, triple and quadruple checking the username and password(user@user).
我在做什么错了?
推荐答案
简短答案-不知道.您的tomcat-users.xml看起来正确.检查事项:
Short answer - don't know. Your tomcat-users.xml looks right. Things to check:
- 是否已部署Manager应用程序?
- 具有管理器(使用管理器脚本的位置)已更改?
- 使用JMX确认正确读取了用户和角色.
- 在server.xml中更改了领域吗?
- Is the Manager app deployed?
- Has the web.xml used by theManager (where manager-script is used) been changed?
- Use JMX to confirm that the users and roles are read correctly.
- Has the Realm been changed in server.xml?
这篇关于使用"manager-script"设置正确的用户名和密码.在Tomcat中的角色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!