Reputation: 39
I'm new to wiremock, and I'm trying to use it to record the requests & responses of a java application. I am using standalone wiremock jar for this. Below is the command I am using
java -jar /jenkins/tools/wiremock-jre8-standalone-2.26.3.jar --proxy-all=http://server1:33898 --root-dir=src/main/resources/testRecordings/$tagName/recordings/${scenarioName} --port 9523 -verbose
Now http://server1:33898 is successful and page opens successfully, but for some reason http://server1:9523 does not load the page. I guess it means the wiremock server is not being created.
I did netstat -tuplen to check if the port is in listening status on server1. And I noticed that it was listening.
tcp6 0 0 :::9523 :::* LISTEN 1000 418954126 39650/java
Why is the wiremock server not getting created on port 9523 and http://server1:9523 not work despite giving --port option in java -jar code snippet above?
Upvotes: 1
Views: 999
Reputation: 111
Are you able to load http://server1:9523/__admin ? Also, since you have --verbose, what port do you see once the Wiremock has started? Once it starts, it displays port number like below
Upvotes: 0