I am trying to integrate swagger to my project which is based on scala with
play I have followed steps Step 1 : Add the following dependency to the
build.sbt libraryDependencies ++= Seq("io.swagger" %% "swagger-play2" %
"1.6.0") Step 2 : Add the swagger module to play framework to
Application.conf present in project/conf/ play.modules.enabled +=
"play.modules.swagger.SwaggerModule" step 3 : Add the routes to routes file
present in location project/conf/ GET /swagger.json
@controllers.ApiHelpController.getResources
I am getting error when i run the project
Error injecting constructor, java.lang.NullPointerException at
play.modules.swagger.SwaggerPluginImpl.<init>(SwaggerPlugin.scala:35) while
locating play.modules.swagger.SwaggerPluginImpl at
play.modules.swagger.SwaggerModule.bindings(SwaggerModule.scala:11):
Binding(interface play.modules.swagger.SwaggerPlugin to
ConstructionTarget(class play.modules.swagger.SwaggerPluginImpl) eagerly)
(via modules: com.google.inject.util.Modules$OverrideModule ->
play.api.inject.guice.GuiceableModuleConversions$$anon$1) while locating
play.modules.swagger.SwaggerPlugin can you please help to resolve ? Thanks,
Vivek
--
You received this message because you are subscribed to the Google Groups
"Swagger" 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.