Skip to content
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

Dropwizard 0.8.1, Swagger 1.5, instantiationError: com.wordnik.swagger.config.SwaggerConfig #57

Closed
chriskessel opened this issue Jun 9, 2015 · 1 comment

Comments

@chriskessel
Copy link

    BeanConfig swaggerConfig = new BeanConfig();
    swaggerConfig.setVersion("2.0"); // This is the swagger version?
    swaggerConfig.setResourcePackage("com.kessel");
    swaggerConfig.setScan(true);
    swaggerConfig.setBasePath(".." + environment.getApplicationContext().getContextPath());

Results in this stack trace:

    Exception in thread "main" java.lang.InstantiationError: com.wordnik.swagger.config.SwaggerConfig
at com.wordnik.swagger.config.ConfigFactory$.<init>(ConfigFactory.scala:7)
at com.wordnik.swagger.config.ConfigFactory$.<clinit>(ConfigFactory.scala)
at com.wordnik.swagger.jaxrs.config.BeanConfig.<init>(BeanConfig.scala:26)

I've got the following two dependencies in gradle. That should be sufficient, yes?

compile group: "com.wordnik", name: "swagger-jersey-jaxrs_2.10", version: "1.3.12"
compile group: "com.wordnik", name: "swagger-core", version: "1.5.3-M1"
@chriskessel
Copy link
Author

Doh! Wrong repo (cut/paste to wrong window). Sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant