New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Liquibase 4.4.3 doesn't work under OSGI (Karaf 4.3.2) #2054
Comments
I have a running version of liquibase but I can see one problematic point in my patch. As I extended classes/resources loading with OSGI way I also created hard dependency to OSGI what is wrong. What do you think about idea that the classloading stuffs could be separated? I'm thinking about something like OSGIResourceAccessor. Or maybe someone can suggest a better way how to solve problems from points 2 and 3. |
Hi @jherkel Thanks for creating this issue. Can you add a few more details on how to recreate this? Glad that you have a PR coming. If that is faster to create the PR, that would be great but will still need a re-creatable scenario to test the fix. We can then add it to the list of issues we are processing. |
I will try to prepare a test project based on the latest Karaf. I have source code that works but now it is just an "idea" how problem can be solved and not a "real" PR. But I can create PR (not for merge) because someone could find a better way how to solve problem with classloading under OSGI. |
liquibase-osgi-test.zip
After execution of command 6) you can see this error:
Now you can stop karaf with 'halt' command If you want to check my patch you need to change liquibase version in pom.xml (mvn clean install) and change version of liquibase in command 5 (bundle:install -s mvn:org.liquibase/liquibase-core/4.5.0-local-SNAPSHOT) |
I also ran into the "Cannot find default log service" error in an OSGi project (not using Karaf), and can confirm that the patch in the above PR resolve this issue. |
Environment
Liquibase Version: 4.4.3
Liquibase Integration & Version: OSGI (Fedora 34, Karaf 4.3.3, JDK 11)
Description
We currently use liquibase 3.8.0 and would like to migrate to the latest version (4.4.3). But I found out some problems:
With these changes I was able to load liquibase as bundle and also was able to execute all our migration scripts. I will also prepare PR for these changes so someone can better imagine what I had to change.
Steps To Reproduce
install and try liquibase under karaf 4.3.2
Actual Behavior
Liquibase doesn't work
The text was updated successfully, but these errors were encountered: