I am using jdbi-core-3.21.0. But I have fixed the issue by including the 
classes below on my project manually.



On Thursday, August 5, 2021 at 5:37:45 AM UTC+8 [email protected] wrote:

> Hi,
>
> Which version of Dropwizard are you using exactly?
> Could you share the build file for your project or at least a complete 
> list of dependencies?
>
> Cheers,
> Jochen
>
> Am 04.08.2021 um 11:21 schrieb Dondell Batac <[email protected]>:
>
> JdbiFactory factory = new JdbiFactory();
> jdbiMysql = factory.build(environment, config.database, "mysql");
> jdbiPostgres = factory.build(environment, config.database2, "postgresql");
>
> ERROR:
> Caused by: java.lang.ClassNotFoundException: 
> com.codahale.metrics.jdbi3.strategies.StatementNameStrategy
>
> FULL ERROR:
> java.lang.NoClassDefFoundError: 
> com/codahale/metrics/jdbi3/strategies/StatementNameStrategy
>     at 
> com.fulcrumgt.tardis.TardisApplication.run(TardisApplication.java:169)
>     at 
> com.fulcrumgt.tardis.TardisApplication.run(TardisApplication.java:72)
>     at io.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:44)
>     at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:87)
>     at io.dropwizard.cli.Cli.run(Cli.java:79)
>     at io.dropwizard.Application.run(Application.java:94)
>     at 
> com.fulcrumgt.tardis.TardisApplication.main(TardisApplication.java:87)
> Caused by: java.lang.ClassNotFoundException: 
> com.codahale.metrics.jdbi3.strategies.StatementNameStrategy
>     at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
>     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
>     ... 7 more
>
> -- 
> 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].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dropwizard-user/11337230-d518-4990-a1c2-66f6a80ec878n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/dropwizard-user/11337230-d518-4990-a1c2-66f6a80ec878n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dropwizard-user/bc645a86-b444-484d-84fb-f80bd3ebbc25n%40googlegroups.com.

Reply via email to