解决方法LogbackValve缺少异步支持 [英] Workaround LogbackValve Lack of Async Support
问题描述
我正在尝试使用Spring Boot 1.3.5.RELEASE创建一个Zipkin 1.31.1服务器,以构建一个内置了Tomcat 8.0.33的胖可执行JAR.这失败,并显示以下错误消息:
I'm trying to create a Zipkin 1.31.1 server using Spring Boot 1.3.5.RELEASE to build a fat executable JAR with with Tomcat 8.0.33 embedded in it. This is failing with the following error message:
java.lang.IllegalArgumentException: Async support must be enabled on a servlet and for all filters involved in async request processing. This is done in Java code using the Servlet API or by adding "<async-supported>true</async-supported>" to servlet and filter declarations in web.xml. Also you must use a Servlet 3.0+ container
如中所述的 Spring Boot启用异步支持.xml
as described in Spring Boot Enable Async Supported Like in web.xml even with the suggested fix.
在调试器中设置断点后,我发现问题与
After setting breakpoints in the debugger, I found that the problem is the same as described in
未得到回答,最终创建了以下改进请求:
which wasn't answered and ultimately had the following improvement request created:
ch.qos.logback.access.tomcat.LogbackValve不异步支持
有人对我如何解决此问题有任何建议吗?我需要帮助:
Does anyone have any recommendations how I can workaround this issue? I need help either:
- 使用支持异步行为的包装器替换管道中的LogBackValve
OR
- 禁用LogbackValve和/或将其从管道中删除并且无法享受其好处
非常感谢您能提供的帮助.谢谢!
Any help you can provide would be much appreciated. Thanks!
推荐答案
我想出了如何禁用注入LogbackAccess的bean.这样就解决了问题,因此Zipkin现在正在接受请求.
I figured out how to disable the bean that was injecting LogbackAccess. This resolved the issue so that Zipkin is now accepting requests.
这篇关于解决方法LogbackValve缺少异步支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!