English 中文(简体)
反应没有被拖延?
原标题:Response is not getting logged?

Hi I am using tomcat + spring 3.0 ws trying to log request and response can see request in catalina, but no reponse??

     <bean id="soapLoggingInterceptor"
            class="org.springframework.ws.soap.server.endpoint.interceptor.SoapEnvelopeLoggingInterceptor">
            <property name="logRequest" value="true" />
            <property name="logResponse" value="true" />
            <property name="logFault" value="true" ></property>

        </bean>


    <bean id="payloadMapping"
            class="org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping">
                    <property name="interceptors">
                <list>

                    <ref local="soapLoggingInterceptor" />

                </list>
            </property>
        </bean>

<logger name="com.test.apptest">
        <level value="DEBUG"/>
    </logger>
最佳回答

我得以这样做,在我的记录4j.properties中添加以下内容:

log4j.rootLogger=TRACE, console
log4j.logger.org.springframework.ws.client.MessageTracing.sent=TRACE
log4j.logger.org.springframework.ws.client.MessageTracing.received=TRACE

当然,这一解决办法的问题在于,它公布所有进出服务的信息。

如果你仍然想使用伐木拦截器,我认为你前面的一段话应当改为:

<logger name="org.springframework.ws.soap.server.endpoint.interceptor">
    <level value="DEBUG"/>
</logger>
问题回答

<代码>SoapEnvelope Carloging Interceptor将只在<代码>DEBUG水平上登录。 因此,检查你的Tomcat 伐木群,确保德国航天中心能够进行<条码>的登记。





相关问题
Tomcat´s server.xml dynamic configuration

My web application uses the same database configuration as the application XYZ. I have a resource declaration for a context in server.xml, so I have a duplicated configuration (once for web ...

session transfer issue from Tomcat to ASP.Net

I am using Tomcat to host JSP and using IIS 7.0 to host aspx (C# + .Net 3.5 + VSTS 2008), and I have some session transfer issue from JSP page to ASPX page. JSP page is in one domain and all other ...

JSP exception - class not found (tomcat)

I m setting up an existing application on a new Tomcat 5.5 server connecting to a Postgres database (running on Debian Lenny). When I access it I get a series of stack traces with the following root ...

热门标签