未授权对Tomcat服务器的访问 [英] Access to Tomcat server has not been authorized

查看:813
本文介绍了未授权对Tomcat服务器的访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在netbeans中使用过glassfish服务器,现在我改成了tomcat,当我 运行我在glassfish中创建的Web应用程序,这给了我 错误:

I have used glassfish server in netbeans, now I changed to tomcat and when I run my web application that I have created in glassfish gives me the error :

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.

我在conf/tomcat-user.xml中添加了一个名称为"manager-script"的角色 但是我的服务器管理器在哪里?我没找到 请帮帮我.
谢谢...

I have added a role with name "manager-script" in conf/tomcat-user.xml but where is my Server Manager? I did'nt find it. Please help me.
thanks...

推荐答案

  1. tomcat-users.xml中添加以下行.

 <user username="admin" password="password" roles="tomcat,role1,manager-script,manager-gui"/

  • 重新启动tomcat/服务.

  • Restart tomcat/service.

    这篇关于未授权对Tomcat服务器的访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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