cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From harbhanu <harbh...@huawei.com>
Subject RE: Setting logging configuration using cxf.config.file
Date Fri, 25 Apr 2008 13:47:34 GMT
After using your file as config file for both server and client...putting it
in the classpath.. {I added current directory too in the classpath}..
I think I encountered a defect...but am not sure about it..[may be some
configuration related issue]


For me even when the server says that its ready, client is not able to reach
it... that I suppose is owing to some issue with the server... coz I am not
able to get the WSDL for the service using browser also... it gives "unable
to connect"

Also, still my issue regarding logging is not resolved ;-(

Regards,
Harbhanu
-----Original Message-----
From: Per Olesen [mailto:polesen@nordija.com] 
Sent: Friday, April 25, 2008 3:59 PM
To: harbhanu@huawei.com
Cc: users@cxf.apache.org; jaspreet@huawei.com
Subject: Re: Setting logging configuration using cxf.config.file

Hi,

I use a slightly different xml for configuring the logger interceptors:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:jaxws="http://cxf.apache.org/jaxws"
       xmlns:cxf="http://cxf.apache.org/core"
       xsi:schemaLocation="
          http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
          http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd
          http://cxf.apache.org/core
http://cxf.apache.org/schemas/core.xsd">

  <import resource="classpath:META-INF/cxf/cxf.xml" />
  <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
  <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />

  <!-- enable in/out logging interceptors in cxf -->
  <cxf:bus>
    <cxf:features>
      <cxf:logging/>
    </cxf:features>
  </cxf:bus>

</beans>

/Per

harbhanu wrote:
>
> <beans xmlns="http://www.springframework.org/schema/beans"
>
>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
>        xsi:schemaLocation="
>
> http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans.xsd">
>
> <bean id="logInbound"
> class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
>
> <bean id="logOutbound"
> class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
>
> <cxf:bus>
>
>         <cxf:outInterceptors>
>
>             <ref bean="logOutbound"/>
>
>         </cxf:outInterceptors>
>
>         <cxf:outFaultInterceptors>
>
>             <ref bean="logOutbound"/>
>
>         </cxf:outInterceptors>
>
>         <cxf:inInterceptors>
>
>             <ref bean="logInbound"/>
>
>         </cxf:outInterceptors>
>
> </cxf:bus>
>
> </beans>
>


Mime
View raw message