[英]Tomcat Manager Authentication repeated popup while running a Java web project
I get a repeatedly popup to login to Tomcat Manager Application whenever I try running a Java web Project. 每当我尝试运行Java Web项目时,我都会反复弹出以登录Tomcat Manager Application。
Putting in the username/password according to server properties (Manager-script) role doesn't work, the retarded server keeps popping up again with authentication required. 根据服务器属性(Manager-script)角色输入用户名/密码不起作用,延迟服务器会再次弹出需要的身份验证。
The server is Tomcat 8.0.27 with Netbeans 8.1 Suggestions anyone? 服务器是Tomcat 8.0.27,Netbeans 8.1建议有人吗?
You should create manager-gui
role and grant it to the user in tomcat-users.xml
. 您应该创建manager-gui
角色并将其授权给tomcat-users.xml
的用户。
<!--
NOTE: By default, no user is included in the "manager-gui" role required
to operate the "/manager/html" web application. If you wish to use this app,
you must define such a user - the username and password are arbitrary.
-->
By default Tomcat installs two applications manager
and host-manager
. 默认情况下,Tomcat会安装两个应用程序manager
和host-manager
。 These applications are in the webapps
and they are using basic authentication mechanism to access their pages. 这些应用程序位于webapps
应用程序中,它们使用基本身份验证机制来访问其页面。 Predefined roles above give access to these administrative apps. 上面的预定义角色可以访问这些管理应用程序。 More about Manager apps you can find in the docs. 有关您可以在文档中找到的Manager应用程序的更多信息。
You need create a user: 您需要创建一个用户:
modificate tomcat-users.xml modificate tomcat-users.xml
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="manager-gui"/>
<user username="tomcat" password="password" roles="manager-gui" />
</tomcat-users>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.