我得到的系统出了以下讯息话题:“的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