camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-8917) camel-cxfrs doesn't use the resource classes handle the invocation directly
Date Tue, 29 Sep 2015 07:06:05 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-8917?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen resolved CAMEL-8917.
--------------------------------
    Resolution: Won't Fix

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

Mime
View raw message