У меня проблема с tomcat8.5.42.
Я хочу получить статус xml на tomcat8, я включил сценарий менеджера и статус менеджера на tomcat-users.xml.
Но когда я пытаюсь получить ответ XML от URL:
`https://localhost:8443/manager/status?XML=true`
Я получаю html-страницу вместо того, чтобы получить xml-ответ вроде этого:
`<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="/manager/xform.xsl" ?>
<status>
<jvm>
<memory free="7389106160" total="8389132288" max="15271460864"/>
<memorypool name="PS Eden Space" type="Heap memory"
usageInit="1073741824" usageCommitted="3781689344"
usageMax="5524422656" usageUsed="257593544" />
<memorypool name="PS Old Gen" type="Heap memory"
usageInit="2863661056" usageCommitted="4548198400"
usageMax="11453595648" usageUsed="742432584" />
<memorypool name="PS Survivor Space" type="Heap memory"
usageInit="178782208" usageCommitted="59244544"
usageMax="59244544" usageUsed="0" />
<memorypool name="Code Cache" type="Non-heap memory"
usageInit="2555904" usageCommitted="94961664"
usageMax="251658240" usageUsed="94203072" />
<memorypool name="Compressed Class Space" type="Non-heap memory"
usageInit="0" usageCommitted="7602176" usageMax="1073741824"
usageUsed="6231456" />
<memorypool name="Metaspace" type="Non-heap memory"
usageInit="0" usageCommitted="88080384" usageMax="-1"
usageUsed="76585968" />
</jvm>
<connector name=""ajp-nio-8009"">
<threadInfo maxThreads="200" currentThreadCount="0"
currentThreadsBusy="0" />
<requestInfo maxTime="0" processingTime="0" requestCount="0"
errorCount="0" bytesReceived="0" bytesSent="0" />
<workers></workers>
</connector>
<connector name=""http-nio-8888"">
<threadInfo maxThreads="200" currentThreadCount="10"
currentThreadsBusy="1" />
<requestInfo maxTime="483774" processingTime="14996281"
requestCount="160013" errorCount="226" bytesReceived="34524294"
bytesSent="3772314007" />
<workers>
<worker stage="R" requestProcessingTime="0"
requestBytesSent="0" requestBytesReceived="0" remoteAddr="?"
virtualHost="?" method="?" currentUri="?"
currentQueryString="?" protocol="?" />
<worker stage="S" requestProcessingTime="1"
requestBytesSent="0" requestBytesReceived="0"
remoteAddr="127.0.0.1" virtualHost="localhost" method="GET"
currentUri="/manager/status/status"
currentQueryString="XML=true" protocol="HTTP/1.1" />
</workers>
</connector>
</status>`
это мой tomcat-users.xml:
`<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="manager-gui"/>
<role rolename="manager-status"/>
<role rolename="admin"/>
<role rolename="admin-gui"/>
<role rolename="manager"/>
<role rolename="manager-gui"/>
<user username="tomcat" password="tomcat" roles="manager-gui,admin-
gui,manager-script,manager-jmx,manager-status"/>
`
Мне нужно проверить документ, но я не могу найти решение.