Juan Manuel CABRERA created JBWS-3866:
-----------------------------------------
Summary: Property 'cxf.in.interceptors' seems to be ignored
Key: JBWS-3866
URL:
https://issues.jboss.org/browse/JBWS-3866
Project: JBoss Web Services
Issue Type: Bug
Components: jbossws-cxf
Affects Versions: jbossws-cxf-4.3.1
Reporter: Juan Manuel CABRERA
The functionnality of adding interceptors as stated in [the
documentation|https://docs.jboss.org/author/display/JBWS/Apache+CXF+integ...] 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.
{code:xml|title=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>
{code}
and:
{code:xml|title=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>
{code}
The interceptor:
{code:java|title=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);
}
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)