Hi,

I found a problem in CXF 2.7.8 and 2.7.9 about JSONP, but in 2.6.9 is OK.

Belowing is my maven pom.xml:

<dependency>
    <groupId>org.apache.cxf</groupId>
    <artifactId>cxf-rt-frontend-jaxrs</artifactId>
    <version>${cxf.version}</version>
</dependency>
<dependency>
    <groupId>org.apache.cxf</groupId>
    <artifactId>cxf-rt-rs-extension-providers</artifactId>
    <version>${cxf.version}</version>
</dependency>
<dependency>
    <groupId>org.codehaus.jettison</groupId>
    <artifactId>jettison</artifactId>
    <version>1.3.5</version>
</dependency>

I have used JsonpInInterceptor in the InInterceptors and
JsonpPreStreamInterceptor/JsonpPostStreamInterceptor in the OutInterceptors.

In the 2.7.8, the problem is "No message body writer has been found for
response class ArrayList".
In the 2.7.9, the JSON data is ok, but not found callback function.
In the 2.6.9, it is OK!

Can you tell me, how I can use the JSONP feature in the 2.7+?

Thanks a lot!



--
View this message in context: 
http://cxf.547215.n5.nabble.com/JSONP-is-not-works-tp5739858.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to