I have used the same swagger example published from this ,
The same example is working fine if ran alone but when this same code is integrated with the project, its generating an error :
- [ERROR] [11/14/2017 19:36:36.084]
[akka-system-akka.actor.default-dispatcher-3]
[akka.actor.ActorSystemImpl(akka-system)] Error during processing of
request: 'io.swagger.converter.ModelConverter: Provider
io.swagger.scala.converter.SwaggerScalaModelConverter could not be
instantiated'. Completing with 500 Internal Server Error response.
- Uncaught error from thread [akka-system-akka.actor.default-dispatcher-3]
shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled for
ActorSystem[akka-system]
[ERROR] [SECURITY][11/14/2017 19:36:37.032]
[akka-system-akka.actor.default-dispatcher-3]
[akka.actor.ActorSystemImpl(akka-system)]
- Uncaught error from thread
[akka-system-akka.actor.default-dispatcher-3] shutting down JVM since
'akka.jvm-exit-on-fatal-error' is enabled
- java.lang.NoClassDefFoundError: Could not initialize class io.swagger.converter.ModelConverters
at io.swagger.jaxrs.Reader.parseMethod(Reader.java:829)
Attaching my pom.xml
Ref : https://blog.knoldus.com/2017/01/31/document-generation-of-akka-http-using-swagger/
Any help would be greatly appreciated.
Thanks