gpt4 book ai didi

tomcat - 安装javamelody 401 "Authentication Required"

转载 作者:行者123 更新时间:2023-11-28 23:28:20 26 4
gpt4 key购买 nike

JavaMelody 问题的“入门”。我有一个现有的 tomcat Web 服务,我想用 javamelody 进行分析。

我关注了 Step 1 in their instructions here ,重新部署 war 。
我的 tomcat 服务器是用 https 设置的。例如,我的上下文是“foo-service”。
所以我然后去了https://<host>/foo-service/monitoring , 但被赋予了

“错误 401 需要身份验证”。

我做错了什么?

最佳答案

您是否更改了其他任何内容,例如您的 conf/tomcat-users.xml 或者您是否还有其他机会限制您的 tomcat 中的某些 URL?也许您的 web.xml 中的某些过滤器在此之前捕获了您对 url 的调用。最好是发布您的 web.xml。

另请查看安全章节:https://github.com/javamelody/javamelody/wiki/UserGuide#16-security

关于tomcat - 安装javamelody 401 "Authentication Required",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34056004/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com