2014-09-24 216 views
0

我使用Eclipse IDE和我已经安装JBOSS和Tomcat:一切似乎作品,但是... 当我尝试连接到http://localhost:8080/manager/html使用管理面板,我得到这个错误:Tomcat管理ERR_CONNECTION_REFUSED

ERR_CONNECTION_REFUSED 

这是我的tomcat-users文件:

<?xml version='1.0' encoding='utf-8'?> 
<tomcat-users> 

<role rolename="tomcat"/> 
    <role rolename="role1"/> 
    <user username="tomcat" password="tomcat" roles="tomcat"/> 
    <user username="both" password="tomcat" roles="tomcat,role1"/> 
    <user username="role1" password="tomcat" roles="role1"/> 


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

Windows防火墙被禁用,并且到现在为止我从来没有问题,看到我所有JPS

回答

0

给角色manager-gui一些用户

<user username="manager" password="tomcat" roles="manager-gui"/> 

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.