[
https://issues.apache.org/jira/browse/CAMEL-8917?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14934756#comment-14934756
]
Claus Ibsen commented on CAMEL-8917:
------------------------------------
There is some work in progress by Sergey to implement rest-dsl to CXF-RS
> camel-cxfrs doesn't use the resource classes handle the invocation directly
> ---------------------------------------------------------------------------
>
> Key: CAMEL-8917
> URL: https://issues.apache.org/jira/browse/CAMEL-8917
> Project: Camel
> Issue Type: Improvement
> Components: camel-cxfrs
> Reporter: Charles Moulliard
> Labels: camel-cxfrs
>
> Here is the content of our discussion
> As the camel-swagger get the ServiceModule from the Route definition which is
> dumped to XML, it is quit different from the CXF-swagger who builds the
> ServiceModule from the Resource Class.
> As camel-cxfrs doesn't use the resource classes handle the invocation
> directly (it just delegates the request to the camel route), so it causes
> some trouble if the CXF-swagger try to load the resource classes. To fix it,
> we may need to find a way to generate the ServiceModule rightly.
> Issue :
> {code}
> I try now to use Swagger as described here :
> https://github.com/swagger-api/swagger-core/wiki/Java-CXF-Quickstart and
> implemented as such :
> https://github.com/cmoulliard/use-cases/blob/master/fabric-camel-rest/src/main/resources/OSGI-INF/blueprint/camel.xml#L11-L40
> When we launch locally mvn camel:run but I get -->
> "No message body writer has been found for class
> org.apache.cxf.message.MessageContentsList, ContentType:
> application/json;charset=utf-8" at this address
> "http://localhost:8080/cxf/rest/api-docs
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)