Hopefully this is an easy question, but I can't seem to figure out what I am
doing wrong.
I am trying to attach the GZIPOutInterceptor to a jaxrs service running
under the CXFNonSpringJaxrsServlet.
I have <init-param>'s for the jaxrs.serviceClasses and jaxrs.providers (into
which I have successfully added a Filter,) but
<init-param>
<param-name>jaxrs.outInterceptors</param-name>
<param-value>org.apache.cxf.transport.http.gzip.GZIPOutInterceptor</param-va
lue>
</init-param>
is not working for me.
I am using CXF 2.2.3
Attached is web.xml file.
Thanks,
Linus
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>EMSC Event Services</display-name>
<description>Event search, detail, and event cart services.</description>
<security-constraint>
<web-resource-collection>
<web-resource-name> Event Cart update </web-resource-name>
<url-pattern>/event/cart/add/*</url-pattern>
<url-pattern>/event/cart/remove/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>eventcartadmin</role-name>
</auth-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name> Event Cart </web-resource-name>
<url-pattern>/event/cart/get/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>eventcart</role-name>
</auth-constraint>
</security-constraint>
<!-- Define the Login Configuration for this Application -->
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Event Cart Authorized</realm-name>
</login-config>
<servlet>
<servlet-name>cxf-qml-soap</servlet-name>
<display-name>QuakeML SOAP service</display-name>
<description>Apache CXF SOAP Endpoint for QuakeML service</description>
<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>cxf-qml-soap</servlet-name>
<url-pattern>/ws/*</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>cxf-qml-rest</servlet-name>
<display-name>REST Event Services</display-name>
<description>REST-style query services for EMSC events in Quakeml and JSON format</description>
<servlet-class>
org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet
</servlet-class>
<init-param>
<param-name>jaxrs.serviceClasses</param-name>
<param-value>
org.neries.service.QuakemlImpl
org.neries.service.EventsCartImpl
org.neries.service.EventServiceImpl
org.neries.service.EventSearchDiscriminator
org.neries.service.EventLatestDiscriminator
org.neries.service.EventDetailDiscriminator
</param-value>
</init-param>
<init-param>
<param-name>jaxrs.providers</param-name>
<param-value>
org.neries.service.QuakemlImpl
org.neries.service.EventsCartImpl
org.neries.service.EventServiceImpl
org.neries.service.EventSearchDiscriminator
org.neries.service.EventLatestDiscriminator
org.neries.service.EventDetailDiscriminator
org.neries.service.ContentTypeFilter
</param-value>
</init-param>
<!-- org.neries.service.ContentTypeFilter is to support query param format=json control.
If we don't need that, we could remove the filter. -->
<init-param>
<param-name>jaxrs.outInterceptors</param-name>
<param-value>org.apache.cxf.transport.http.gzip.GZIPOutInterceptor</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>cxf-qml-rest</servlet-name>
<url-pattern>/event/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>60</session-timeout>
</session-config>
</web-app>