I get a rather strange exception, and I cannot figure out the reason. When I run db status , I get:
Caused by: liquibase.exception.ServiceNotFoundException: liquibase.exception.ServiceNotFoundException: liquibase.exception.ServiceNotFoundException: Could not find implementation of liquibase.logging.Logger at liquibase.logging.LogFactory.getLogger(LogFactory.java:19) at liquibase.logging.LogFactory.getLogger(LogFactory.java:30) at liquibase.database.DatabaseFactory.findCorrectDatabaseImplementation(DatabaseFactory.java:67) at liquibase.Liquibase.<init>(Liquibase.java:52) at com.yammer.dropwizard.migrations.ManagedLiquibase.<init>(ManagedLiquibase.java:47) at com.yammer.dropwizard.migrations.AbstractLiquibaseCommand.run(AbstractLiquibaseCommand.java:39) at com.yammer.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:58) at com.yammer.dropwizard.cli.Cli.run(Cli.java:53) at com.yammer.dropwizard.Service.run(Service.java:61) at com.derp.SomeService.main(SomeService.java:27) ... 6 more Caused by: liquibase.exception.ServiceNotFoundException: liquibase.exception.ServiceNotFoundException: Could not find implementation of liquibase.logging.Logger at liquibase.servicelocator.ServiceLocator.newInstance(ServiceLocator.java:179) at liquibase.logging.LogFactory.getLogger(LogFactory.java:17) ... 15 more Caused by: liquibase.exception.ServiceNotFoundException: Could not find implementation of liquibase.logging.Logger at liquibase.servicelocator.ServiceLocator.findClass(ServiceLocator.java:145) at liquibase.servicelocator.ServiceLocator.newInstance(ServiceLocator.java:177) ... 16 more
I am not sure how to solve it. This seems to be a slightly intermittent issue that in the past gave fixes in Liquibase. I did not expect this to happen in such an integrated function. I am using dropwizard-core / hibernate / migrations 0.6.2. I am using the com.smokejumperit.gradle.OneJarPlugin gradle plugin to pack all this, which I think is also responsible for loading the classes.
Anyway, I lost a little. Any ideas? Has anyone seen this before?
Depressio
source share