Tomcat 7 Manager can't login

后端 未结 8 1768
生来不讨喜
生来不讨喜 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:24

    You also need to restart Tomcat after making changes to tomcat-users.xml or server.xml, context.xml or web.xml for the changes to be effective.

    In my case, the problem was I did not restart Tomcat after making changes. Also on Tomcat 7 I had assigned manager-script, manager-gui roles to the same user. So Tomcat gave 403 error to enforce CRSF protection.

    Wrong:

    
    
    
    

    Correct:

    
    
    
    
    

提交回复
热议问题