2016-10-27 32 views
1

我試圖遷移從Tomcat 8.0.37到8.5.6的Tomcat 8.5 - 緩存警告洪水

在這個新版本中,err控制檯這些警告不斷充斥:

oct. 27, 2016 3:16:40 PM org.apache.catalina.webresources.Cache getResource 
WARNING: Unable to add the resource at [/WEB-INF/lib/something.jar] 
to the cache because there was insufficient free space available after evicting expired cache entries - 
consider increasing the maximum size of the cache 

我想配置servlet(web.xml或Spring)忽略某些文件類型的緩存(* .jar)

我已閱讀關於配置context.xml文件,但感覺像是一種解決方法真正的問題。

我該如何告訴Tomcat將所有內容記錄到slf4j?
我已將此添加到清單,但它不工作:

Dependencies: org.slf4j 

回答

2

緩存警告是由8.5.6中的已知錯誤,將被固定在8.5.7所致。新版本應該在一週左右即可上市。

如果您想使用slf4j,然後按照slf4j指令重定向java.util.logging輸出。