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] [Commented] (CAMEL-8993) camel-swagger component doesn't work properly in karaf
Date Sun, 26 Jul 2015 15:50:04 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-8993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14642002#comment-14642002
] 

Claus Ibsen commented on CAMEL-8993:
------------------------------------

Doubt this is easy to work. 

First we are working on a camel-swagger migrated to just java (without scala). 

For osgi you may need to add dynamic imports and other osgi classloader stuff to make it swagger
able to read your model classes.

> camel-swagger component doesn't work properly in karaf
> ------------------------------------------------------
>
>                 Key: CAMEL-8993
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8993
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-swagger, osgi
>    Affects Versions: 2.15.2
>            Reporter: Arnaud Deprez
>            Priority: Minor
>
> I'm using camel 2.15.2 with its REST DSL and camel-swagger in an OSGi environment (I
tried both karaf 2.4.3 and karaf 4).
> I'm using the servlet component by exposing it as OSGi services : 
> * CamelHttpTransportServlet for my camel route
> * DefaultCamelSwaggerServlet for the swagger documentation.
> Then I use the swagger ui to see the documentation. 
> I can see my rest endpoint and the documentation I put in "description" but it's not
able to show me the model for the request and the response (defined in "type" and "outType").
> However if I use the same routes and the same servlet in a spring-boot environment, it
works like a charm. 
> So it seems to be a classpath problem.
> The whole discussion is available here : 
> http://camel.465427.n5.nabble.com/camel-swagger-in-karaf-td5769384.html
> The project I use to reproduce the problem is here : 
> https://github.com/arnaud-deprez/camel-examples/tree/master/rest (normally all needed
information is in the README.md)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message