启用压缩的Tomcat在OS

启用压缩的Tomcat在OS

本文介绍了启用压缩的Tomcat在OS X High Sierra上导致错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经在OS X上使用Tomcat(v7)已有一段时间了,从未遇到任何问题.但是,在将操作系统更新为High Sierra之后,在server.xml中启用压缩后,Web应用程序将不再工作.

We have been using Tomcat (v7) on OS X for quite some time now and never experienced any problems. However, after updating the OS to High Sierra, the web applications do not work anymore when compression is enabled in the server.xml.

Chrome浏览器会不断显示ERR_CONTENT_DECODING_FAILED(显然没有任何内容显示).关闭压缩功能后,一切正常.我认为问题的根源是苹果在High Sierra中对zlib的升级.塞拉利昂一切正常. Tomcat日志文件看起来完美无缺-没有提及那里发生的任何错误.

Chrome constantly shows an ERR_CONTENT_DECODING_FAILED (obviously without any content displaying). When compression is switched off, everything works fine. I assume the root of the problem is Apple's upgrade of zlib in High Sierra. Everything was working fine on Sierra. The Tomcat log files look flawless -- there is no mention of any error occurring there.

有人遇到相同的问题并设法解决该问题,还是知道可行的解决方法而未禁用压缩?

Does anyone experience the same issue and managed to fix it or knows of a viable workaround without disabling compression?

此外,如果有人可以确认更高版本的Tomcat在High Sierra上没有遇到此问题,这也将有所帮助.

Also, it would also be helpful if someone can confirm that newer versions of Tomcat do not experience this issue on High Sierra.

感谢您的帮助.

推荐答案

这是如何实现Java SDK setLevel()方法的错误.据报告,由设置级别产生的压缩数据已被SDK丢弃.这将导致压缩数据损坏.可以在此处,由xuemingshen编写.

This is a bug in how the Java SDK setLevel() method is implemented. It is reported that compressed data resulting from setting the level is discarded by the SDK. That will result in corrupted compressed data. The fix for the bug can be found here, written by xuemingshen.

这篇关于启用压缩的Tomcat在OS X High Sierra上导致错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 11:40