Flyway and Karaf

2019-07-31 Thread Kushal Gautam
Hi, I am trying to use Flyway in my Karaf instance. I have prepared a demo to reproduce the error that I have encountered at https://github.com/cooshal/karaf-flyway. I am using a custom built karaf distribution. I have created two different modules inside db-migrations: 1. flyway provider

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

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,