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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: jbossws-cxf-4.3.1
    • Fix Version/s: None
    • Component/s: jbossws-cxf
    • Labels:
      None

      Description

      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);
      	}
      }
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  asoldano Alessio Soldano
                  Reporter:
                  juanma.cabrera Juan Manuel CABRERA
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: