swagger-api / swagger-play

Apache License 2.0
330 stars 181 forks source link

Swagger Play with Play 2.4 UnexpectedException issue #115

Open damianbl opened 7 years ago

damianbl commented 7 years ago

Hi,

I have the following dependencies:

  "io.swagger" % "swagger-play2_2.11" % "1.5.3",
  "io.swagger" % "swagger-parser" % "1.0.16"

I have Scala 2.11.7 and Play 2.4.8 in my project. Most of the other configuration is done according to:

https://github.com/swagger-api/swagger-samples/tree/master/scala/scala-play2.4

And the strange issue I face is the exception thrown when the application is initialized:

NoSuchMethodError: play.utils.Reflect$.bindingsFromConfiguration(Lplay/api/Environment;Lplay/api/PlayConfig;Ljava/lang/String;Ljava/lang/String;Lplay/utils/Reflect$SubClassOf;Lplay/utils/Reflect$SubClassOf;Lscala/reflect/ClassTag;Lscala/reflect/ClassTag;)Lscala/collection/Seq;

I cannot find the cause of the exception. Can you guide me somehow? Thank you.