Post-Server Actions Doenst work

76 views
Skip to first unread message

Nathanael Araujo

unread,
Jun 10, 2021, 6:48:20 PM6/10/21
to wiremock-user
Hello Guys,
Iam trying to run docker with webhooks extensions but i am not having lucky.
I Have added all extension and dependencies that are needed but I receive a error

I Have add this commands in my Dockerfile:
# Add desired extension

# Add dependencies

CMD ["java", "-cp", "/var/wiremock/lib/*:/var/wiremock/extensions/*", "com.github.tomakehurst.wiremock.standalone.WireMockServerRunner"]

#CMD ["--extensions", "org.wiremock.webhooks.Webhooks"]

But this error is displayed:

Exception in thread "main" java.lang.NoSuchMethodError: com.github.tomakehurst.wiremock.http.HttpClientFactory.createClient()Lorg/apache/http/impl/client/CloseableHttpClient;

at org.wiremock.webhooks.Webhooks.<init>(Webhooks.java:46)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

at java.lang.Class.newInstance(Class.java:442)

at com.github.tomakehurst.wiremock.extension.ExtensionLoader$2.apply(ExtensionLoader.java:61)

at com.github.tomakehurst.wiremock.extension.ExtensionLoader$2.apply(ExtensionLoader.java:57)

at wiremock.com.google.common.collect.Iterators$6.transform(Iterators.java:783)

at wiremock.com.google.common.collect.TransformedIterator.next(TransformedIterator.java:47)

at wiremock.com.google.common.collect.Maps.uniqueIndex(Maps.java:1272)

at wiremock.com.google.common.collect.Maps.uniqueIndex(Maps.java:1234)

at com.github.tomakehurst.wiremock.extension.ExtensionLoader.asMap(ExtensionLoader.java:43)

at com.github.tomakehurst.wiremock.extension.ExtensionLoader.loadExtension(ExtensionLoader.java:32)

at com.github.tomakehurst.wiremock.extension.ExtensionLoader.load(ExtensionLoader.java:39)

at com.github.tomakehurst.wiremock.standalone.CommandLineOptions.buildExtensions(CommandLineOptions.java:194)

at com.github.tomakehurst.wiremock.standalone.CommandLineOptions.<init>(CommandLineOptions.java:185)

at com.github.tomakehurst.wiremock.standalone.WireMockServerRunner.run(WireMockServerRunner.java:52)

at com.github.tomakehurst.wiremock.standalone.WireMockServerRunner.main(WireMockServerRunner.java:134)
I've tried many things, but always take me to this same error!

Can you help me?

Thanks

Reply all
Reply to author
Forward
0 new messages