Tomcat-Maven 401 Error: Cannot invoke Tomcat manager

后端 未结 1 1004
长发绾君心
长发绾君心 2020-12-31 12:12

Went through most of the errors shown in StackOverFlow and still couldn\'t solve it. I\'m trying to deploy a SpringMVC application. But, I just can\'t get it to work.

<
相关标签:
1条回答
  • 2020-12-31 12:52

    Your maven configuration has the username and password set as admin/password. In the Tomcat configuration they are set as admin/admin.

    Switch your pom.xml to have <password>admin</password>.

    Also, the roles need changing for the admin user as per the Tomcat docs. You'll want the manager-gui role to access the HTML manager and the manager-script role to access the text interface.

    0 讨论(0)
提交回复
热议问题