[jbossws-issues] [JBoss JIRA] (JBWS-4059) Support CXF FaultListener

Jim Ma (Jira) issues at jboss.org
Wed Jul 10 00:12:00 EDT 2019


    [ https://issues.jboss.org/browse/JBWS-4059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13757500#comment-13757500 ] 

Jim Ma edited comment on JBWS-4059 at 7/10/19 12:11 AM:
--------------------------------------------------------

Thanks for the patch.   I created JBWS-4176 and after this is resolved , it allow to configure FaultListener through a jboss-webservice.xml . 

{code:java}
<?xml version="1.1" encoding="UTF-8"?>
<webservices
  xmlns="http://www.jboss.com/xml/ns/javaee"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  version="1.2"
  xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee">

  <property>
    <name>cxf.interceptors.in</name>
    <value>org.jboss.test.ws.jaxws.cxf.interceptors.BusInterceptor</value>
  </property>
  <property>
    <name>cxf.interceptors.out</name>
    <value>org.jboss.test.ws.jaxws.cxf.interceptors.BusCounterInterceptor</value>
  </property>
  <property>
    <name>org.apache.cxf.logging.FaultListener</name>
    <value>##faultListner</value>
  </property>
  <property>
    <name>##faultListner</name>
    <value>org.jboss.test.ws.jaxws.cxf.interceptors.JBossWSFaultListener</value>
  </property>
</webservices>
{code}


Does this work for your case ?


was (Author: jim.ma):
Thanks for the patch.   I created JBWS-4176 and after this is resolved , it allow to configure FaultListener through a jboss-webservice.xml . 
<?xml version="1.1" encoding="UTF-8"?>
<webservices
  xmlns="http://www.jboss.com/xml/ns/javaee"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  version="1.2"
  xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee">

  <property>
    <name>cxf.interceptors.in</name>
    <value>org.jboss.test.ws.jaxws.cxf.interceptors.BusInterceptor</value>
  </property>
  <property>
    <name>cxf.interceptors.out</name>
    <value>org.jboss.test.ws.jaxws.cxf.interceptors.BusCounterInterceptor</value>
  </property>
  <property>
    <name>org.apache.cxf.logging.FaultListener</name>
    <value>##faultListner</value>
  </property>
  <property>
    <name>##faultListner</name>
    <value>org.jboss.test.ws.jaxws.cxf.interceptors.JBossWSFaultListener</value>
  </property>
</webservices>
{code}
Does this work for your case ?

> Support CXF FaultListener
> -------------------------
>
>                 Key: JBWS-4059
>                 URL: https://issues.jboss.org/browse/JBWS-4059
>             Project: JBoss Web Services
>          Issue Type: Feature Request
>          Components: jbossws-cxf
>    Affects Versions: jbossws-cxf-5.1.3.Final
>            Reporter: 华绪 吴
>            Priority: Optional
>         Attachments: Support_CXF_FaultListener.patch
>
>
> with this feature, developer can hide runtime exception warn logging and custom the runtime exception output instead of  mapping to a relatively generice soap:fault which was send to client.
> I created a patch for jbossws-cxf-5.1.3.Final.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)



More information about the jbossws-issues mailing list