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」に設定することです: