1 Reply Latest reply on Jul 10, 2019 1:14 AM by Jim Ma

    CXF faultlistener in Wildfly

    Ulab S Newbie



      I have need to specify the custom implementation of CXF `FaultListener` in the webservice. The CXF provides following option to do that.


      public class MyFaultListener implements org.apache.cxf.logging.FaultListener{



      <entry key="org.apache.cxf.logging.FaultListener">
      <ref bean="myfaultListener" />



      But apparently the JBossWS-CXF stack does not take this property in to account. Infact, the cxf-servlet.xml itself is not used by the stack.

      How can I write/define the custom fault listener for CXF in wildfly ?


      I can see the `jboss-webservices.xml` supports  <property> but it is limited to interceptors. Is there property support for defining `FaultListener` ?

      jbossws-cxf/Constants.java at master · jbossws/jbossws-cxf · GitHub

        • 1. Re: CXF faultlistener in Wildfly
          Jim Ma Apprentice

          I'll get this support in jboss-webservice.xml and FaultListener can be specified like :

          <?xml version="1.1" encoding="UTF-8"?>














          I already created [JBWS-4176] Support configure property reference - JBoss Issue Tracker and will check in the change very soon.