我得到的系統出了以下訊息話題:「的FacesMessage(S)已經排隊....」。在JSF 1.2中,如何更改RenderResponsePhase的日誌記錄級別?
與Sun的Java服務器解決方案Faces實現(1.2_07-B03-FCS)是這個web.xml中添加:
<context-param>
<description>
Set to true to disable the following warning message:
FacesMessage(s) have been enqueued, but may not have been displayed
</description>
<param-name>com.ibm.ws.jsf.disableEnqueuedMessagesWarning</param-name>
<param-value>true</param-value>
</context-param>
但由於某些原因,解決方案不符合本實行,我的工作使用 Mojarra(1.2_15-b01-FCS)。
本文檔說我需要簡單地更改RenderResponsePhase的記錄器。
Faces Message(s) habe been encoded...
從本質上講,我覺得我問的是什麼是記錄器類我需要配置的RenderResponsePhase。
我想知道是否對於Tomcat 7.0.22,如果可以在conf/logging.properties中添加該行以避免每個Tomcat實例上的消息。快速檢查似乎不起作用。 – Pixel
@Pixel:將此VM參數添加到Tomcat啓動:'-Djava.util.logging.config.file =/path/to/tomcat/conf/logging.properties'。否則,JRE將被使用。 – BalusC
更好的信息(也由BalusC)是[這裏](http://stackoverflow.com/questions/7363704/jsf2-logs-with-tomcat)。 – Pixel