You are not authorized to view this page.If you have already configured the Manager application to allow access and you have used your browsers back button, used a saved book- or similar then you may have triggered the cross-site request forgery (CSRF) protection that has been enabled for the HTML interface of the Manager application. You will need to reset this protection by returning to the main Manager page. Once you return to this page, you will be able to continue using the Manager appliction's HTML interface normally. If you continue to see this access denied message, check that you have the necessary permissions to access this application.If you have not changed any configuration files, please examine the file conf/tomcat-users.xml in your installation. That file must contain the credentials to let you use this webapp.For example, to add the manager-gui role to a user named tomcat with a password of s3cret, add the following to the config file listed above.<role rolename="manager-gui"/>
<user username="tomcat" password="s3cret" roles="manager-gui"/>
Note that for Tomcat 7 onwards, the roles required to use the manager application were changed from the single manager role to the following four roles. You will need to assign the role(s) required for the functionality you wish to access.manager-gui - allows access to the HTML GUI and the status pages
manager-script - allows access to the text interface and the status pages
manager-jmx - allows access to the JMX proxy and the status pages
manager-status - allows access to the status pages only
The HTML interface is protected against CSRF but the text and JMX interfaces are not. To maintain the CSRF protection:Users with the manager-gui role should not be granted either the manager-script or manager-jmx roles.
If the text or jmx interfaces are accessed through a browser (e.g. for testing since these interfaces are intended for tools not humans) then the browser must be closed afterwards to terminate the session.
For more information - please see the Manager App HOW-TO.这个是他官方的文章,看那

解决方案 »

  1.   

    这个只是他提供的例子,我改成s3cret也不行的,奇怪了 折腾我一天
      

  2.   

    说错了,是要设置完四个才行。比如:
    <role rolename="manager-gui"/>
      <role rolename="manager-script"/>
      <role rolename="manager-jmx"/>
    <role rolename="manager-status"/>
      <user username="admin" password="admin" roles="manager-gui,manager-script,manager-jmx,manager-status"/>
      

  3.   

    不可能,重启,刷新页面就应该提示你登录了。除非你不是tomcat7.
      

  4.   

    tomcat7 doc
      

  5.   


    <?xml version='1.0' encoding='utf-8'?>
    <!--
      Licensed to the Apache Software Foundation (ASF) under one or more
      contributor license agreements.  See the NOTICE file distributed with
      this work for additional information regarding copyright ownership.
      The ASF licenses this file to You under the Apache License, Version 2.0
      (the "License"); you may not use this file except in compliance with
      the License.  You may obtain a copy of the License at      http://www.apache.org/licenses/LICENSE-2.0  Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.
    -->
    <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.
    -->
      <role rolename="manager-gui"/>
      <role rolename="manager-jmx"/>
      <role rolename="manager-script"/>
      <role rolename="manager-status"/>  <user username="tomcat" password="admin" roles="manager-jmx,manager-gui,manager-script,manager-status"/>
    </tomcat-users>
      

  6.   

    tomcat-usershttp://www.coderanch.com/t/594652/Tomcat/log-management-pages和这个人一样的情况 不过按他讲的做了 还是不行
      

  7.   


    关键是没有异常输如多次后只有下面的wanrning
      

  8.   

    你不能改个名字吗,tomcat这个名字被锁定了。
      

  9.   

    之前是.zip版的tomcat
    我下载了个exe版的tomcat  解决了 奇怪谢谢fangmingshijie,rui888的热心帮助!