Tomcat 7 Manager can't login

后端 未结 8 1766
生来不讨喜
生来不讨喜 2020-12-29 07:34

Trying to log in but can\'t. My tomcat-users.xml, modified as I saw it here.

    
   
            


        
相关标签:
8条回答
  • 2020-12-29 08:28

    Ubuntu Server 14.04.3 tomcat7 installed from repo

    What worked for me was removing the role definitions from the tomcat-users.xml file. and then restarting tomcat.

    my file now looks like this:

    <tomcat-users>
    <!--
      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.
        -->
    <!--
      NOTE:  The sample user and role entries below are wrapped in a comment
      and thus are ignored when reading this file. Do not forget to remove
      <!.. ..> that surrounds them.
    -->
      <user username="admin" password="n0tmyr3alp455w0rd" roles="manager-gui,admin-gui"/>
    </tomcat-users>
    

    Notice the instructions tell you to define the user who belongs to manager-gui but it does not tell you to define the role "manager-gui"

    0 讨论(0)
  • 2020-12-29 08:31

    Try

    sudo apt-get install tomcat7-admin
    
    0 讨论(0)
提交回复
热议问题