Answered my own question, logging configuration below is fine, it's just that the logging.properties needs to be placed (at least for Tomcat) in the WEB-INF/classes folder, not the WEB-INF/lib one.

Glen

On 30.12.2010 14:05, Glen Mazza wrote:
The user's guide seems incorrect, the logging configuration in the cxf-servlet.xml below is not being detected by the web service provider, regardless of location of the logging.properties file.

Glen

On 30.12.2010 12:39, Glen Mazza wrote:
Hi all, according to this page: https://cwiki.apache.org/confluence/display/CXF20DOC/Configuration#Configuration-WhatcanIconfigureandhowdoIdoit?

To activate standard JDK logging for a servlet-hosted web service provider, I need to add the logging.properties to the WEB-INF/lib folder of my WAR (unless I want to do JDK config at the JDK level) and add the <bean id="cxf"...> section (or simpler versions given in the doc above) to my servlet-hosted cxf-servlet.xml config file:

<beans....>

<jaxws:endpoint id="doubleit"
      implementor="service.DoubleItPortTypeImpl"
      address="/doubleit"
      wsdlLocation="WEB-INF/wsdl/DoubleIt.wsdl">
</jaxws:endpoint>


<bean id="logInbound" class="org.apache.cxf.interceptor.LoggingInInterceptor"/> <bean id="logOutbound" class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>

<bean id="cxf" class="org.apache.cxf.bus.CXFBusImpl">
<property name="inInterceptors">
<list>
<ref bean="logInbound"/>
</list>
</property>
<property name="outInterceptors">
<list>
<ref bean="logOutbound"/>
</list>
</property>
<property name="outFaultInterceptors">
<list>
<ref bean="logOutbound"/>
</list>
</property>
<property name="inFaultInterceptors">
<list>
<ref bean="logInbound"/>
</list>
</property>
</bean>
</beans>

This is correct? Whatever I declare at the CXFBusImpl level will be the default for each jaxws:endpoint if I don't declare logging there? Also, how does CXF know *where* in the interceptor chain to properly put the logging interceptors -- does it go first or last in each chain?

Thanks,
Glen






--

Glen Mazza
gmazza at apache dot org
http://www.jroller.com/gmazza

Reply via email to