Tomcat 8 throwing - org.apache.catalina.webresources.Cache.getResource Unable to add the resource

前端 未结 4 1032
慢半拍i
慢半拍i 2020-12-02 04:50

I have just upgraded Tomcat from version 7.0.52 to 8.0.14.

I am getting this for lots of static image files:

org.apache.catalina.webre

4条回答
  •  没有蜡笔的小新
    2020-12-02 05:36

    This isn’t a solution in the sense that it doesn’t resolve the conditions which cause the message to appear in the logs, but the message can be suppressed by appending the following to conf/logging.properties:

    org.apache.catalina.webresources.Cache.level = SEVERE
    

    This filters out the “Unable to add the resource” logs, which are at level WARNING.

    In my view a WARNING is not necessarily an error that needs to be addressed, but rather can be ignored if desired.

提交回复
热议问题