softwaremill / elasticmq

In-memory message queue with an Amazon SQS-compatible interface. Runs stand-alone or embedded.
https://softwaremill.com/open-source/
Apache License 2.0
2.51k stars 194 forks source link

How to run elasticmq-rest with akka-http-2.4.x #77

Closed harmeetsingh0013 closed 7 years ago

harmeetsingh0013 commented 7 years ago

I am creating a project using akka-http-2.4.8 and using amazon-sqs. For sqs functionality testing, i am using elasticmq-rest. I am using "org.elasticmq" %% "elasticmq-rest-sqs" % "0.9.3" dependency. But when i run the test cases, i got following exception:

java.lang.NoClassDefFoundError: akka/http/scaladsl/server/directives/WebsocketDirectives

    at org.elasticmq.rest.sqs.TheSQSRestServerBuilder.start(SQSRestServerBuilder.scala:96)
   -------------

This exception might-be version conflict. I am also exclude dependency from elastic-mq but still got an exception. How to resolve this issue?

adamw commented 7 years ago

Probably the dependencies in ElasticMQ would need updating. Could you try doing that and maybe submit a PR?

adamw commented 7 years ago

Fixed in 0.10.0