Re: camel-swagger in karaf

2015-07-21 Thread Arnaud Deprez
I just raised an issue for this : https://issues.apache.org/jira/browse/CAMEL-8993 On Tue, Jul 21, 2015 at 5:24 PM Arnaud Deprez wrote: > Thanks Ed, > Until your message I though I was the only one who is trying this. > > I also think it's a classpath issue because as I said, I don't reach this

Re: camel-swagger in karaf

2015-07-21 Thread Arnaud Deprez
Thanks Ed, Until your message I though I was the only one who is trying this. I also think it's a classpath issue because as I said, I don't reach this issue with spring-boot. The following may help to diagnostic the problem. I put all the logs in TRACE while I'm performing the request from the s

Re: camel-swagger in karaf

2015-07-20 Thread Ed Welch
A few months back I played around with swagger in camel, I think I made it about to where you were and either got pulled into another project or my short attention span got the better of me, because I never found a solution to this. I think the problem you are seeing with Karaf is likely a class

Re: camel-swagger in karaf

2015-07-20 Thread Arnaud Deprez
Hi again, I just push my example here which works fine with spring-boot but still can't see the model in Karaf. https://github.com/arnaud-deprez/camel-examples/tree/master/rest There are also the features I use. If someone find what's wrong, I'd be verry happy ! :-) On Thu, Jul 16, 2015 at 1:46

Re: camel-swagger in karaf

2015-07-16 Thread Arnaud Deprez
It was plain pojos, but I just test it by adding the annotation @ApiModel and @ApiModelProperty on my pojos and it's still doesn't work. On Thu, Jul 16, 2015 at 1:18 PM Claus Ibsen wrote: > Hi > > Ah okay is your model annotate with swagger annotations or just plain > pojos? > > On Thu, Jul 16,

Re: camel-swagger in karaf

2015-07-16 Thread Claus Ibsen
Hi Ah okay is your model annotate with swagger annotations or just plain pojos? On Thu, Jul 16, 2015 at 1:10 PM, Arnaud Deprez wrote: > Hi, > > Thanks for your quick answer. > > I've tried to add either a file org.apache.camel.cfg and > jmx.acl.org.apache.camel.cfg that has * = * and I still hav

Re: camel-swagger in karaf

2015-07-16 Thread Arnaud Deprez
Hi, Thanks for your quick answer. I've tried to add either a file org.apache.camel.cfg and jmx.acl.org.apache.camel.cfg that has * = * and I still have the same issue, even after restarting my karaf. On Thu, Jul 16, 2015 at 12:32 PM Claus Ibsen wrote: > Hi > > Also I remember one of the proble

Re: camel-swagger in karaf

2015-07-16 Thread Claus Ibsen
Hi Also I remember one of the problems was the new RBAC in karaf, so you need to bypass that so swagger can get the model from camel We are doing this out of the box in a future release https://github.com/apache/camel/commit/dcdc7760ad4b382bb6e197190443e48e6ff2cdd7 But for current you need to se

Re: camel-swagger in karaf

2015-07-16 Thread Claus Ibsen
Hi A while back there was a thread about swagger on karaf. Can you find that I think it has some pointers to get it working. On Thu, Jul 16, 2015 at 11:48 AM, Arnaud Deprez wrote: > Hi guys, > > I don't know if this mail is for camel folks or karaf folks. > > I'm using camel 2.15.2 with its RE

camel-swagger in karaf

2015-07-16 Thread Arnaud Deprez
Hi guys, I don't know if this mail is for camel folks or karaf folks. 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

Re: camel-swagger in karaf? not yet....

2015-04-01 Thread Claus Ibsen
On Wed, Apr 1, 2015 at 9:33 PM, Ed Welch wrote: > Ok, I've spent the bulk of my day on this, and have met with some success. > > There are a few other gotcha's trying to get swagger to run from karaf. > (some issues were fought based on my application, for example, i was using > guava 18, howe

Re: camel-swagger in karaf? not yet....

2015-04-01 Thread Ed Welch
Ok, I've spent the bulk of my day on this, and have met with some success. There are a few other gotcha's trying to get swagger to run from karaf. (some issues were fought based on my application, for example, i was using guava 18, however swagger brings with it guava 15 creating some dependen

Re: camel-swagger in karaf? not yet....

2015-04-01 Thread Ed Welch
And if I learn to search Jira properly, I find the issue now too :/ https://issues.apache.org/jira/browse/CAMEL-8568 Thanks Claus On Wed, 1 Apr 2015 16:42:40 +0200, Claus Ibsen wrote: > Hi > > See the known issue section at > http://camel.apache.org/camel-2150-release.html > > On Wed, Apr 1,

Re: camel-swagger in karaf? not yet....

2015-04-01 Thread Claus Ibsen
Hi See the known issue section at http://camel.apache.org/camel-2150-release.html On Wed, Apr 1, 2015 at 4:24 PM, Ed Welch wrote: > With the release of 2.15.1 fixing a bug that prevented 2.15 from working in > an OSGi environment, figured I'd give camel-swagger feature a try... > > 2015-04-01 0

camel-swagger in karaf? not yet....

2015-04-01 Thread Ed Welch
With the release of 2.15.1 fixing a bug that prevented 2.15 from working in an OSGi environment, figured I'd give camel-swagger feature a try... 2015-04-01 09:52:38,672 | ERROR | qtp3964738-67| FeaturesPlugin | 88 - org.apache.karaf.webconsole.features - 3.0.3 | Can't insta