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. (
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
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
>
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
@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
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,
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,
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