之前在netbeans用过glassfish server,现在改用tomcat,当我 运行我在 glassfish 中创建的 Web 应用程序给我 错误:
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”的角色
但是我的服务器管理器在哪里?我没有找到它。
请帮助我。
谢谢...
最佳答案
在
tomcat-users.xml
中添加以下行。<user username="admin" password="password" roles="tomcat,role1,manager-script,manager-gui"/
重新启动 tomcat/服务。
关于tomcat - 未授权访问 Tomcat 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10241539/