Slackbot
11/20/2023, 2:44 PMDirk Bolte
11/20/2023, 2:59 PMLucian Crasovan
11/20/2023, 3:07 PMLucian Crasovan
11/21/2023, 2:30 PMLucian Crasovan
11/21/2023, 2:31 PM./gradlew jar shadowJarLucian Crasovan
11/21/2023, 2:32 PMDirk Bolte
11/21/2023, 2:37 PM./gradlew build is sufficient to create both jars - but the result should be the same as with your command.Dirk Bolte
11/21/2023, 2:37 PMDirk Bolte
11/21/2023, 2:50 PMLucian Crasovan
11/21/2023, 3:45 PMLucian Crasovan
11/22/2023, 8:39 AMDirk Bolte
11/22/2023, 8:48 AMcom.github.tomakehurst.wiremock.extension.ExtensionFactory to point to the correct class . The class should look somewhat similar to src/main/java/org/wiremock/extensions/template/StandaloneTemplateExtension.java in the template extensionLucian Crasovan
11/22/2023, 10:43 AMDirk Bolte
11/22/2023, 12:21 PMjava -cp "wiremock-extension-template-standalone-b0fa13d.dirty.jar:wiremock-standalone-3.3.1.jar" wiremock.RunLucian Crasovan
11/22/2023, 12:49 PMLucian Crasovan
11/22/2023, 12:53 PMException in thread "main" java.util.ServiceConfigurationError: com.github.tomakehurst.wiremock.extension.ExtensionFactory: Provider org.wiremock.extensions.state.StandaloneStateExtension not found
at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:593)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.nextProviderClass(ServiceLoader.java:1219)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1228)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1273)
at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1309)
at java.base/java.util.ServiceLoader$ProviderSpliterator.tryAdvance(ServiceLoader.java:1491)
at java.base/java.util.Spliterator.forEachRemaining(Spliterator.java:332)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(StreamSpliterators.java:310)
at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:735)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
at com.github.tomakehurst.wiremock.extension.Extensions.load(Extensions.java:98)
at com.github.tomakehurst.wiremock.core.WireMockApp.<init>(WireMockApp.java:93)
at com.github.tomakehurst.wiremock.WireMockServer.<init>(WireMockServer.java:71)
at com.github.tomakehurst.wiremock.standalone.WireMockServerRunner.run(WireMockServerRunner.java:70)
at wiremock.Run.main(Run.java:23)Dirk Bolte
11/22/2023, 12:58 PM-cp parameter. There can be other ways but that is outside of the wiremock context. Some extensions (like the tempalte) provide auto discovery mechanisms and in order to make them work, they have to be available on the classpath. The setup for docker or junit would be be different though - depends on what you need.Dirk Bolte
11/22/2023, 1:01 PMgit pull . Had a bug com.github.tomakehurst.wiremock.extension.ExtensionFactory (the one I mentioned in https://wiremock-community.slack.com/archives/C03N1E6HFPY/p1700578257529539?thread_ts=1700491499.356719&cid=C03N1E6HFPY ) . Or you need to clean your libs directory and rebuild itLucian Crasovan
11/22/2023, 2:37 PM