简体   繁体   English

日志文件显示“正在写入...”

[英]Log file says "Writing..."

My web application runs using Tomcat 7 , Windows Server 2008R2 , Java , JSP , SQL Server 2012 My web application runs using Tomcat 7 , Windows Server 2008R2 , Java , JSP , SQL Server 2012

The.out log file has thousands of rows with just the words "writing...." .out 日志文件有数千行,仅包含“writing....”字样

I used NotePad++ to search the entire application (including JARs etc.) for "Writing."我使用 NotePad++ 在整个应用程序(包括 JARs 等)中搜索“Writing”。 and and nowhere can I find any code that is the culprit.而且我在任何地方都找不到任何代码是罪魁祸首。

Although it does seem that.jar files are zip files - and thus this search wouldn't work as I am searching for plaintext (see comments on Fast way to update text in a Jar file ) when I edit the.jar files in NotePad++ they all seem to have plaintext in them such as org/saxpath/XPathHandler.class Although it does seem that.jar files are zip files - and thus this search wouldn't work as I am searching for plaintext (see comments on Fast way to update text in a Jar file ) when I edit the.jar files in NotePad++ they似乎都有明文,例如org/saxpath/XPathHandler.class

I had the same problem when the application ran under Oracle and Oracle Application Server.当应用程序在 Oracle 和 Oracle 应用程序服务器下运行时,我遇到了同样的问题。

Any ideas?有任何想法吗?

It was caused by the following in web.xml它是由web.xml中的以下原因引起的

    <filter>
        <filter-name>Compress</filter-name>
        <filter-class>com.jspbook.GZIPFilter</filter-class>
    </filter>

    <filter-mapping>
        <filter-name>Compress</filter-name>
        <url-pattern>*.jsp</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>Compress</filter-name>
        <url-pattern>*.html</url-pattern>
    </filter-mapping>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM