Thanks for your reply Rao.
If I deploy a WAR file for a SOAP MockService on Apache Tomcat 8.0.33 I get "HTTP Status 404" responses in each of three frames from the initial response.
This is when I request "http://localhost:8080/soapwarcontextpath" without a slash at the end,
resulting in URLs like "http://localhost:8080/master" being requested instead of "http://localhost:8080/soapwarcontextpath/master".
If my initial request is to "http://localhost:8080/soapwarcontextpath/" with a slash at the end, there is no problem and I get the WebUI.
If I deploy a WAR file for a SOAP MockService on "GlassFish Server Open Source Edition 4.1.1 (build 1)" an initial request for
"http://localhost:8080/soapwarcontextpath" (without slash) seems to be automatically redirected to
"http://localhost:8080/soapwarcontextpath/" (with slash) and the WebUI shows up.
So, to be more robust, maybe this code in method MockAsWarServlet.printFrameset()
out.print("<frame src=\"master\"/>");
out.print("<frame name=\"detail\" src=\"detail\"/>");
out.print("<frame src=\"log\"/>");
could be replaced by something like this
out.print("<frame src=\"" + request.getContextPath() + "/master\"/>");
out.print("<frame name=\"detail\" src=\"" + request.getContextPath() + "/detail\"/>");
out.print("<frame src=\"" + request.getContextPath() + "/log\"/>");
Also, my initial question was about deploying a WAR for a REST MockService, which also has some specific issues (with the WebUI URIs) as mentioned in another reply in this topic.
Regards,
Jan Vervecken