【发布时间】:2013-09-27 18:58:57
【问题描述】:
您好,我不确定我是否正在尝试连接到 apache 服务器,这是我正在学习的课程,但现在在我删除代码并将其恢复为默认值后,它现在一直在询问密码。
这就是我的 tomcat-users.xml 中的内容
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<user username="ide" password="EiWnNlBG" roles="manager-script,admin"/>
</tomcat-users>
这也在工具中--->服务器--->密码和用户名。
我在输出中遇到错误
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.
BUILD FAILED (total time: 6 seconds)
我唯一更改的是 tomcat-users.xml 和 web.xml,但我将一切恢复正常,仍然要求输入用户名和密码。
【问题讨论】:
-
您是如何构建和部署的?使用 ANT 脚本?也许您尚未更新部署脚本中的凭据。你用的是什么IDE?还安装了多个tomcat吗?也许您指向错误的tomcat或根本没有指向tomcat?我建议退后一步并再次检查所有内容。