tomcat8:无法输入/经理/ HTML

问题描述:

这是我的tomcat-users.xml文件:tomcat8:无法输入/经理/ HTML

<?xml version='1.0' encoding='utf-8'?> 
<tomcat-users xmlns="http://tomcat.apache.org/xml" 
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
         xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd" 
         version="1.0"> 

<role rolename="manager-gui"/> 
<user username="admin" password="admin" roles="manager-gui,manager-script,manager-jmx,manager-status"/> 
</tomcat-users> 

当我输入localhost:在浏览器中8080​​ /经理/ HTML,我得到一个输入框,询问我对于用户名和密码,我为两者输入“admin”并单击“登录”,它只是忽略我的请求。

你知道可能是什么问题吗?

至少,改变你的配置成为:

<?xml version='1.0' encoding='utf-8'?> 
<tomcat-users xmlns="http://tomcat.apache.org/xml" 
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
         xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd" 
         version="1.0"> 
    <role rolename="manager-gui"/> 
    <role rolename="manager-script"/> 
    <role rolename="manager-jmx"/> 
    <role rolename="manager-status"/> 
    <user username="admin" password="admin" roles="manager-gui,manager-script,manager-jmx,manager-status"/> 
</tomcat-users>