Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-3867

Property 'cxf.in.interceptors' seems to be ignored

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • jbossws-cxf-4.3.1
    • jbossws-cxf
    • None

      The functionnality of adding interceptors as stated in the documentation does not seem to work.
      I have tested both the jboss-webservices.xml and jaxws-endpoint-config.xml flavor did not succeed in JBoss EAP 6.3.0.

      jboss-webservices.xml
      <webservices
        xmlns="http://www.jboss.com/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="
          http://www.jboss.com/xml/ns/javaee /schema/jboss_web_services_1.3.xsd">
        <config-name />
        <config-file>WEB-INF/endpoint-config.xml</config-file>
        <property>
          <name>cxf.interceptors.in</name>
          <value>com.finin.jboss.samples.JBWS3192WorkaroundInterceptors</value>
        </property>
      </webservices>
      

      and:

      WEB-INF/endpoint-config.xml
      <jaxws-config
        xmlns="urn:jboss:jbossws-jaxws-config:4.0"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:javaee="http://java.sun.com/xml/ns/javaee"
        xsi:schemaLocation="urn:jboss:jbossws-jaxws-config:4.0 schema/jbossws-jaxws-config_4_0.xsd">
        <endpoint-config>
          <config-name>com.finin.jboss.samples.SimpleWSS4JImpl</config-name>
          <property>
            <property-name>cxf.interceptors.in</property-name>
            <property-value>com.finin.jboss.samples.JBWS3192WorkaroundInterceptor</property-value>
          </property>
        </endpoint-config>
      </jaxws-config>
      

      The interceptor:

      JBWS3192WorkaroundInterceptor
      package com.finin.jboss.samples;
      
      import org.apache.cxf.message.Message;
      import org.apache.cxf.phase.AbstractPhaseInterceptor;
      import org.apache.cxf.phase.Phase;
      
      public class JBWS3192WorkaroundInterceptor extends AbstractPhaseInterceptor<Message> {
      
      	public JBWS3192WorkaroundInterceptor() {
      		super(Phase.READ);
      	}
      
      	@Override
      	public void handleFault(Message message) {}
      
      	@Override
      	public void handleMessage(Message message) throws Fault {
      		throw new Fault(e);
      	}
      }
      

              Unassigned Unassigned
              juanma.cabrera Juan Manuel CABRERA (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: