在Jetty中配置hawtio安全性。登录失败,因为没有为hawtio配置登录模块

在Jetty中配置hawtio安全性。登录失败,因为没有为hawtio配置登录模块,jetty,hawtio,Jetty,Hawtio,我正在尝试为Jetty中运行的hawtio配置安全性 我按照说明进行了操作,但当我尝试进行身份验证时,日志中出现了错误 警告| qtp28021517-18 |由于为空,登录失败 没什么可谈的 日志也没有显示任何明显的信息。我能想到的唯一一件事就是启用调试日志记录,这是我在jetty容器上做的,但它对hawtio输出没有任何影响 [jetty@ip-10-187-44-108 etc]$ tail -500f /opt/web/mybase/logs/2014_12_05.stderrout.l

我正在尝试为Jetty中运行的hawtio配置安全性

我按照说明进行了操作,但当我尝试进行身份验证时,日志中出现了错误

警告| qtp28021517-18 |由于为空,登录失败

没什么可谈的

日志也没有显示任何明显的信息。我能想到的唯一一件事就是启用调试日志记录,这是我在jetty容器上做的,但它对hawtio输出没有任何影响

[jetty@ip-10-187-44-108 etc]$ tail -500f /opt/web/mybase/logs/2014_12_05.stderrout.log
2014-12-05 14:46:09.519:INFO:oejs.Server:main: jetty-9.2.5.v20141112
2014-12-05 14:46:09.541:INFO:oejdp.ScanningAppProvider:main: Deployment monitor [file:/opt/web/mybase/webapps/] at interval 1
2014-12-05 14:46:11.037:INFO:oejw.StandardDescriptorProcessor:main: NO JSP Support for /hawtio, did not find org.apache.jasper.servlet.JspServlet
INFO  | main | Configuration will be discovered via system properties
INFO  | main | Welcome to hawtio 1.4.37 : http://hawt.io/ : Don't cha wish your console was hawt like me? ;-)
INFO  | main | Using file upload directory: /opt/jetty/temp/uploads
WARN  | main | No ConfigFacade constructed yet so using default configuration for now
INFO  | main | hawtio using config directory: /opt/jetty/temp/.hawtio/config
INFO  | main | Performing a pull in git repository /opt/jetty/temp/.hawtio/config on remote URL: https://github.com/hawtio/hawtio-config.git. Subsequent pull attempts will use debug logging
WARN  | main | Local JVM discovery disabled as this JVM cannot access com.sun.tools.attach.VirtualMachine due to: com/sun/tools/attach/VirtualMachine
INFO  | main | Starting hawtio authentication filter, JAAS realm: "hawtio" authorized role(s): "admin" role principal classes: ""
2014-12-05 14:46:12.551:INFO:hawtio:main: jolokia-agent: Using access restrictor classpath:/jolokia-access.xml
2014-12-05 14:46:12.629:INFO:oejsh.ContextHandler:main: Started o.e.j.w.WebAppContext@16e8792{/hawtio,file:/opt/jetty/temp/jetty-0.0.0.0-8282-hawtio.war-_hawtio-any-3488744180783766801.dir/webapp/,AVAILABLE}{/hawtio.war}
2014-12-05 14:46:12.643:INFO:oejs.ServerConnector:main: Started ServerConnector@466d6c{HTTP/1.1}{0.0.0.0:8282}
2014-12-05 14:46:12.643:INFO:oejs.Server:main: Started @3786ms
WARN  | qtp28021517-18 | Login failed due null

我们开始在应用程序中嵌入Hawtio,但发现它对构建有点敏感,并且存在库问题。
因此,在我们想要监视的应用程序的命令行上使用Jolokia代理更容易,并在单独的tomcat容器中使用Hawtio war文件。然后您可以使用标准的Tomcat安全性

我认为您可以为io.hawt启用调试/跟踪日志记录并查看更多详细信息。AFAIR我们尝试不从默认日志配置记录敏感信息,因此您需要启用调试/跟踪以查看更多信息。尽管“null”通常表示NPE异常