小编use*_*313的帖子

Tomcat 不断要求输入密码和用户名

您好,我不确定我是否正在尝试连接到 apache 服务器,这是我正在学习的课程,但现在在我删除代码并将其恢复为默认值后,它现在一直要求输入密码。

这就是我的 tomcat-users.xml 中的内容

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<user username="ide" password="EiWnNlBG" roles="manager-script,admin"/>
</tomcat-users>
Run Code Online (Sandbox Code Playgroud)

这也在工具 ---> 服务器 ---> 通行证和用户名中。

我在输出中遇到错误

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)
Run Code Online (Sandbox Code Playgroud)

我唯一更改的是 tomcat-users.xml 和 web.xml,但我将所有内容恢复正常,但仍然要求输入用户名和密码。

java xml apache tomcat

5
推荐指数
1
解决办法
8182
查看次数

标签 统计

apache ×1

java ×1

tomcat ×1

xml ×1