Re: [Karaf 4.1.2] - error with camel-elasticsearch5

2017-10-17 Thread francois papon
Ok thanks ;) On 18/10/2017 09:17, Jean-Baptiste Onofré wrote: > Hi, > > It sounds pretty close to: > > https://issues.apache.org/jira/browse/SM-3503 > > Let me take a look as I gonna fix that today. > > Regards > JB > > On 10/17/2017 10:20 PM, francois papon wrote: >> Hi, >> >> I use the

Re: [Karaf 4.1.2] - error with camel-elasticsearch5

2017-10-17 Thread Jean-Baptiste Onofré
Hi, It sounds pretty close to: https://issues.apache.org/jira/browse/SM-3503 Let me take a look as I gonna fix that today. Regards JB On 10/17/2017 10:20 PM, francois papon wrote: Hi, I use the camel-elasticsearch5 component in my bundle and I have a ClassNotFound exception at startup :

RE: How to put an external file on the classpath so code in karaf bundle can read it?

2017-10-17 Thread KARR, DAVID
Won’t that still be deployed as a jar file? Doesn’t that mean that “getResource()” (as opposed to “getResourceAsStream”) will fail? From: Guillaume Nodet [mailto:gno...@apache.org] Sent: Tuesday, October 17, 2017 1:52 PM To: user Subject: Re: How to put an external file

Re: How to put an external file on the classpath so code in karaf bundle can read it?

2017-10-17 Thread Guillaume Nodet
One way to achieve that is to put the config file in a fragment and attach it to your bundle. It will be able to access those without any problem then. 2017-10-17 22:34 GMT+02:00 KARR, DAVID : > I'm working on a project using Karaf 3.0.1 (can't upgrade). > > A colleague has a

How to put an external file on the classpath so code in karaf bundle can read it?

2017-10-17 Thread KARR, DAVID
I'm working on a project using Karaf 3.0.1 (can't upgrade). A colleague has a situation where he's using an artifact that tries to load a properties file from the classpath using "getResource()", as opposed to "getResourceAsStream()". We can't change this. He's tried to place these properties

[Karaf 4.1.2] - error with camel-elasticsearch5

2017-10-17 Thread francois papon
Hi, I use the camel-elasticsearch5 component in my bundle and I have a ClassNotFound exception at startup : 2017-10-17 23:52:00,927 | INFO  | nt Dispatcher: 1 | ElasticsearchProducer    | 68 - org.apache.camel.camel-elasticsearch5 - 2.20.0 | Connecting to the ElasticSearch cluster: