Re: Flyway and Karaf

2019-08-05 Thread Kushal Gautam
Hi again JB: The problem seemed to have originated from Flyway's classloader, as it could not load the Logger implementations. Adding a custom LogCreator and Logger implementations did resolve the issue. (

Re: Flyway and Karaf

2019-08-02 Thread Kushal Gautam
Hi: I will try that today. It seems like this is an issue between Flyway and Logging library. Although, this error is not very clearly displayed, but I got this error, and it was a known issue of flyway and osgi. I will post back with results. On Fri, Aug 2, 2019 at 8:17 AM Jean-Baptiste

Re: Flyway and Karaf

2019-08-02 Thread Jean-Baptiste Onofré
That's normal, a fragment can be started. By the bay, did you try a simple dynamic import (with the bundle) ? Regards JB On 01/08/2019 09:00, Kushal Gautam wrote: > Hi JB: > > I tried the configuration below, following the example >

Re: Flyway and Karaf

2019-08-01 Thread Kushal Gautam
Hi JB: I tried the configuration below, following the example ( https://github.com/FlavioF/fabric8-osgi-flyway-example/blob/master/fabric8-osgi-flyway/pom.xml ) org.apache.felix maven-bundle-plugin true org.flywaydb.core

Re: Flyway and Karaf

2019-08-01 Thread Kushal Gautam
@karaf.apache.org Subject: Re: Flyway and Karaf Yes, it's what I meant: you have to "gather" the classloaders. An option to add all flyway bundles as require bundle/private package in your own bundle. Like this, all will be in your bundle classloader. Another option is to use fragment

Re: Flyway and Karaf

2019-07-31 Thread Jean-Baptiste Onofré
Yes, it's what I meant: you have to "gather" the classloaders. An option to add all flyway bundles as require bundle/private package in your own bundle. Like this, all will be in your bundle classloader. Another option is to use fragment with your bundle as host (as a fragment is just resolved,

Re: Flyway and Karaf

2019-07-31 Thread Kushal Gautam
Hi JB: Thank you for your reply. I tried the options I could. For example, some suggested that this problem was resolved by using Fragment-Host in maven-bundle-plugin as shown here: https://github.com/FlavioF/fabric8-osgi-flyway-example/blob/master/fabric8-osgi-flyway/pom.xml But, doing that,

Re: Flyway and Karaf

2019-07-31 Thread Jean-Baptiste Onofré
Hi, NoClassDefFoundError is certainly due to a class (or several classes) in different classloaders. I don't know Flyway, so I have to take a look how they load the providers. It seems an issue in Flyway on OSGi. Regards JB On 31/07/2019 22:45, Kushal Gautam wrote: > Hi, > >  I am trying to