Closed RobPodolski closed 8 years ago
I cannot reproduce this issue: created empty maven project, dropped s3mock there as a dependency and it was able to start successfully. Can you please post your full pom.xml (or at least the dependencies section)? It might be some sort of dependency conflict.
Hi and thanks for getting back to me. Sorry it took a while - had to reinstate the project etc.. Here's the parts of the POM you asked about.
From: shuttie <notifications@github.com>
To: findify/s3mock s3mock@noreply.github.com Cc: RobPodolski RobPodolski@yahoo.co.uk; Author author@noreply.github.com Sent: Friday, 19 August 2016, 10:34 Subject: Re: [findify/s3mock] maven dependencies correct? (#1)
I cannot reproduce this issue: created empty maven project, dropped s3mock there as a dependency and it was able to start successfully. Can you please post your full pom.xml (or at least the dependencies section)? It might be some sort of dependency conflict.— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
I see the problem in this snippet:
<dependency>
<groupId>io.findify</groupId>
<artifactId>s3mock_2.11</artifactId>
<version>0.1.0</version>
<exclusions>
<exclusion>
<groupId>com.typesafe.akka</groupId>
<artifactId>akka-http-core-experimental_2.11</artifactId>
</exclusion>
</exclusions>
</dependency>
Suggestions:
akka-http-core-experimental
dependency as it contains the missing akka.http.scaladsl.settings.RoutingSettings
classThanks - for the suggestion - will try the 0.1.2 version. NB I put the exclusion in myself in an attempt to fix the problem since it was a class within this module that seemed to be the problem. Sorry - should have removed this before sending to you.
From: shuttie <notifications@github.com>
To: findify/s3mock s3mock@noreply.github.com Cc: RobPodolski RobPodolski@yahoo.co.uk; Author author@noreply.github.com Sent: Sunday, 28 August 2016, 12:04 Subject: Re: [findify/s3mock] maven dependencies correct? (#1)
I see the problem in this snippet:
<artifactId>s3mock_2.11</artifactId>
<version>0.1.0</version>
<exclusions>
<exclusion>
<groupId>com.typesafe.akka</groupId>
<artifactId>akka-http-core-experimental_2.11</artifactId>
</exclusion>
</exclusions>
Suggestions:
Unfortunately it still gives the error message. Maybe there's a problem with my using Java 8? Here's the POM...
Thanks for the info, I was able to reproduce the issue, but with the bad news for you:
So you have a dependency conflict and I have no idea how to fix it. You can create a ticket for https://github.com/adamw/elasticmq to ask Adam to upgrade elasticmq to akka-http 2.4 (as I'm not sure that it's possible to downgrade s3mock to akka-http 1.0).
Many thanks for the info - will think about this!
From: shuttie <notifications@github.com>
To: findify/s3mock s3mock@noreply.github.com Cc: RobPodolski RobPodolski@yahoo.co.uk; Author author@noreply.github.com Sent: Tuesday, 30 August 2016, 14:42 Subject: Re: [findify/s3mock] maven dependencies correct? (#1)
Thanks for the info, I was able to reproduce the issue, but with the bad news for you:
Hi - I get the following when trying to start the api using java....
Looks like "RoutingSettings" missing from akka-http-core-experimental_2.11?
Rob
[sqsmock-akka.actor.default-dispatcher-4] INFO akka.event.slf4j.Slf4jLogger - Slf4jLogger started Exception in thread "main" java.lang.NoClassDefFoundError: akka/http/scaladsl/settings/RoutingSettings$ at io.findify.s3mock.S3Mock.start(S3Mock.scala:137) at com.elsevier.agrm.sc.articleUpdate.sqs.MockS3Server.main(MockS3Server.java:19) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144) Caused by: java.lang.ClassNotFoundException: akka.http.scaladsl.settings.RoutingSettings$ at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 7 more