2016-04-06 22 views
0

Tomcat 7.0.65を使用しています。ここでTomcatマネージャへのアクセス404

は私のtomcat-users.xmlのである:[これは、資格情報の入力を求められます。ここでは

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

は、server.xml

<Realm className="org.apache.catalina.realm.MemoryRealm" /> 

でサーバーレルムスニペットは、私は以下のURLにアクセスすることができますです初めて]

http://localhost:8080/manager/status http://localhost:8080/manager/status/all

について

しかし、のいずれかのURLにアクセス:

http://localhost:8080/manager/text/sessions?path=/examples http://localhost:8080/manager/text/serverinfo

は "404が見つかりません" で失敗します。私は/管理/テキストとしてURLにアクセスしていますが

The page you tried to access (/manager/text/sessions) does not exist. 

The Manager application has been re-structured for Tomcat 7 onwards and some of URLs have changed. All URLs used to access the Manager application should now start with one of the following options: 

/manager/html for the HTML GUI 
/manager/text for the text interface 
/manager/jmxproxy for the JMX proxy 
/manager/status for the status pages 
Note that the URL for the text interface has changed from "/manager" to "/manager/text". 

You probably need to adjust the URL you are using to access the Manager application. However, there is always a chance you have found a bug in the Manager application. If you are sure you have found a bug, and that the bug has not already been reported, please report it to the Apache Tomcat team. 

注:以下は、表示されるエラーメッセージです。カールしても同じエラーで失敗します。

設定がありません。

java.lang.SecurityException: Restricted (ContainerServlet) class org.apache.catalina.manager.ManagerServlet 

修正する方法は、「コンテキストに「特権= true」に設定することです:

答えて

0

は多くのデバッグの後、私は本当の原因はManagerServletは、以下のセキュリティ例外でインスタンスを取得するために失敗したましたTOMCAT_INSTALL_DIR/conf/context.xml内のセクション

<!-- The contents of this file will be loaded for each web application --> 
<Context privileged="true"> 

    <!-- Default set of monitored resources. If one of these changes, the --> 
    <!-- web application will be reloaded. 
関連する問題