java.lang.NoSuchMethodError: io.dropwizard.server.DefaultServerFactory.getJerseyRootPath()Ljava/lang/String;

GitHub | michaelruocco | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    dropwizard-swagger doesn't work with dropwizard version 1.0.0

    GitHub | 8 months ago | michaelruocco
    java.lang.NoSuchMethodError: io.dropwizard.server.DefaultServerFactory.getJerseyRootPath()Ljava/lang/String;

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      io.dropwizard.server.DefaultServerFactory.getJerseyRootPath()Ljava/lang/String;

      at io.federecio.dropwizard.swagger.ConfigurationHelper.getJerseyRootPath()
    2. io.federecio.dropwizard
      SwaggerBundle.run
      1. io.federecio.dropwizard.swagger.ConfigurationHelper.getJerseyRootPath(ConfigurationHelper.java:53)
      2. io.federecio.dropwizard.swagger.ConfigurationHelper.getSwaggerUriPath(ConfigurationHelper.java:84)
      3. io.federecio.dropwizard.swagger.SwaggerBundle.run(SwaggerBundle.java:57)
      4. io.federecio.dropwizard.swagger.SwaggerBundle.run(SwaggerBundle.java:37)
      4 frames
    3. Dropwizard
      Application.run
      1. io.dropwizard.setup.Bootstrap.run(Bootstrap.java:200)
      2. io.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:42)
      3. io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:85)
      4. io.dropwizard.cli.Cli.run(Cli.java:75)
      5. io.dropwizard.Application.run(Application.java:79)
      5 frames
    4. uk.co.mruoc
      Main.main
      1. uk.co.mruoc.Main.main(Main.java:7)
      1 frame