https://linen.dev logo
#wiremock-java
Title
# wiremock-java
e

Ejiroghene Ineneji

05/08/2023, 12:39 PM
Hello Team, Please i am having issues installing wiremock on my linux ec2 instance in aws. I keep getting the error after running the following command; $ wget https://repo1.maven.org/maven2/com/github/tomakehurst/wiremock-standalone/2.31.0/wiremock-standalone-2.31.0.jar --2023-05-08 123627-- https://repo1.maven.org/maven2/com/github/tomakehurst/wiremock-standalone/2.31.0/wiremock-standalone-2.31.0.jar Resolving repo1.maven.org (repo1.maven.org)... 146.75.32.209, 2a044e4279::209 Connecting to repo1.maven.org (repo1.maven.org)|146.75.32.209|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2023-05-08 123627 ERROR 404: Not Found.
t

Tom

05/08/2023, 12:56 PM
Hi @Ejiroghene Ineneji, that’s a very old version. Try this link to the latest: https://repo1.maven.org/maven2/com/github/tomakehurst/wiremock-standalone/3.0.0-beta-8/wiremock-standalone-3.0.0-beta-8.jar
e

Ejiroghene Ineneji

05/08/2023, 12:57 PM
Okay will do now. Thanks @Tom
e

Ejiroghene Ineneji

05/08/2023, 1:35 PM
what is the difference please?
t

Tom

05/08/2023, 2:24 PM
Primarily that the 3.x beta raises the minimum Java version to 11. There are also some new features, but no actual breaking changes (yet). Later betas will have some breaking changes from a Java perspective, but the JSON API will remain backwards-compatible so it’s a pretty safe bet at this point.
e

Ejiroghene Ineneji

05/08/2023, 3:26 PM
So i have the wiremock running on AWS now. Can anyone give me a clue on how to run or test my upstream against the running wiremock?
t

Tom

05/08/2023, 3:47 PM
Assuming you’ve opened (in the security group) the HTTP (or HTTPS) port you configured when you started WireMock in, you should be able to set the base URL to use the hostname:port of the of the EC2 instance, so e.g. http://ec2-XXX-XXX-XXX-XXX.compute-1.amazonaws.com:8080
e

Ejiroghene Ineneji

05/08/2023, 4:33 PM
Please is this running ….? it the server is up where do i put commands for my tests ?asking because the command prompt isn’t available to type while this runs
11 Views