Tomcat无法访问应用程序管理,但可以访问主机管理器

时间:2016-04-20 14:30:08

标签: java apache tomcat servlets tomcat8

我有一个奇怪的问题,我使用的是Tomcat 8.0.33。我像这样编辑tomcat-user.xml:

<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"/>
    <role rolename="admin-gui"/>
    <role rolename="admin-script"/>
    <user username="xxx" password="xxx" roles="manager-gui,manager-script,manager-jmx,manager-status,admin-gui,admin-script"/>
</tomcat-users>

我可以使用&#34; admin&#34;登录主机管理器页面帐户,但当我去&#34;管理app&#34;页面并输入相同的用户名和密码,它显示(在firefox 44中):

The connection was reset

The connection to the server was reset while the page was loading.

The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer's network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web. 

我在亚马逊云服务器中部署tomcat服务器,我也在自己的服务器中部署了相同的服务器,一切都可以正常工作。

0 个答案:

没有答案