gpt4 book ai didi

jsp - 部署报错,Access to tomcat not authorized报错

转载 作者:行者123 更新时间:2023-11-28 23:20:09 28 4
gpt4 key购买 nike

我的 tomcat-users.xml 文件如下所示:

<?xml version='1.0' encoding='cp1252'?>
<tomcat-users>
<role rolename="manager-gui"/>
<user username="tomcat" password="tomcat" roles="manager-gui"/>
</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: 1 second)

在 netbeans 的服务器窗口中,我提供了相同的用户名和密码。我已经安装了Tomcat 7.0。我不知道这是什么问题。有帮助吗?

最佳答案

尝试以下操作:

<?xml version='1.0' encoding='cp1252'?>
<tomcat-users>
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<user username="tomcat" password="tomcat" roles="manager-gui,manager-script"/>
</tomcat-users>

关于jsp - 部署报错,Access to tomcat not authorized报错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44884514/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com