To use H2 one is required to configure a URL for jdbc, something like: url: jdbc:h2:file:/data/myDatabase. Have you tried to create a new one? I know it is not the same as db drop command, but perhaps it can give you a workaround in the meanwhile.
Good luck! On Wed, Sep 5, 2018 at 6:44 AM Florian <[email protected]> wrote: > Hi all, > > same problem here (using dropwizard 1.3.5). "db drop-all" works fine when > I run it inside Eclipse, but when I build the jar and run the command with > that I get the same exception (tested locally and on CloudFoundry). Other > commands like "db status" or "db migrate" work as expected. > > Any ideas? > > Best regards > Florian > > > > Am Sonntag, 19. August 2018 13:08:35 UTC+2 schrieb Václav Štěbra: >> >> Hello, >> >> I have been playing with dropwizard lately and I run into following issue >> trying to run the db drop-all command with H2 database. Even trying to >> clone the dropwizard-example project and it does not work there either. >> >> `liquibase.exception.UnexpectedLiquibaseException: Could not find command >> class for dropAll >> at >> liquibase.command.CommandFactory.getCommand(CommandFactory.java:60) >> at liquibase.Liquibase.dropAll(Liquibase.java:1146) >> at liquibase.Liquibase.dropAll(Liquibase.java:1133) >> at >> io.dropwizard.migrations.DbDropAllCommand.run(DbDropAllCommand.java:26) >> at io.dropwizard.migrations.DbCommand.run(DbCommand.java:55) >> at >> io.dropwizard.migrations.AbstractLiquibaseCommand.run(AbstractLiquibaseCommand.java:68) >> at >> io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:87)` >> >> Any ideas why it isn't working? >> >> Thank you! >> > -- > You received this message because you are subscribed to the Google Groups > "dropwizard-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "dropwizard-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
