使用"manager-script"设置正确的用户名和密码.在Tomcat中的角色 [英] Set the correct username and password with the "manager-script" role in the Tomcat

查看:211
本文介绍了使用"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:

部署错误:未授权对Tomcat服务器的访问.放 带有"manager-script"角色的正确用户名和密码 服务器管理器中的Tomcat定制器.请参阅服务器日志以获取 详细信息.

Deployment error: Access to Tomcat server has not been authorized. Set the correct username and password with the "manager-script" role in the Tomcat customizer in the Server Manager. See the server log for details.

我的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".

我尝试过的事情:

  1. 删除所有其他Apache安装/目录.
  2. 重新启动.
  3. 两次,三次和四次检查用户名和密码 (用户@用户).
  1. Removing all other Apache installs/directories.
  2. Rebooting.
  3. 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:

  1. 是否已部署Manager应用程序?
  2. 具有 管理器(使用管理器脚本的位置)已更改?
  3. 使用JMX确认正确读取了用户和角色.
  4. 在server.xml中更改了领域吗?
  1. Is the Manager app deployed?
  2. Has the web.xml used by the Manager (where manager-script is used) been changed?
  3. Use JMX to confirm that the users and roles are read correctly.
  4. Has the Realm been changed in server.xml?

这篇关于使用"manager-script"设置正确的用户名和密码.在Tomcat中的角色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆