From 7d23af04caa6def035346ebc2253a60543cdb725 Mon Sep 17 00:00:00 2001 From: baranowb Date: Mon, 26 Aug 2024 13:22:23 +0200 Subject: [PATCH] [WFLY-19662] Switch from / to helloworld-ws context in QS --- helloworld-ws/README.adoc | 4 ++-- helloworld-ws/src/main/webapp/WEB-INF/jboss-web.xml | 2 +- .../org/jboss/as/quickstarts/wshelloworld/ClientIT.java | 8 ++------ 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/helloworld-ws/README.adoc b/helloworld-ws/README.adoc index c98a723343..bcb7b7d8ad 100644 --- a/helloworld-ws/README.adoc +++ b/helloworld-ws/README.adoc @@ -503,7 +503,7 @@ Review the server log to see useful information about the deployed web service e [source,options="nowrap"] ---- JBWS024061: Adding service endpoint metadata: id=org.jboss.as.quickstarts.wshelloworld.HelloWorldServiceImpl - address=http://localhost:8080/HelloWorldService + address=http://localhost:8080/helloworld-ws/HelloWorldService implementor=org.jboss.as.quickstarts.wshelloworld.HelloWorldServiceImpl serviceName={http://www.jboss.org/eap/quickstarts/wshelloworld/HelloWorld}HelloWorldService portName={http://www.jboss.org/eap/quickstarts/wshelloworld/HelloWorld}HelloWorld @@ -514,7 +514,7 @@ JBWS024061: Adding service endpoint metadata: id=org.jboss.as.quickstarts.wshell === Access the Application -You can verify that the Web Service is running and deployed correctly by accessing the following URL: http://localhost:8080/HelloWorldService?wsdl. This URL will display the deployed WSDL endpoint for the Web Service. +You can verify that the Web Service is running and deployed correctly by accessing the following URL: http://localhost:8080/helloworld-ws/HelloWorldService?wsdl. This URL will display the deployed WSDL endpoint for the Web Service. // Undeploy the Quickstart :leveloffset: +2 diff --git a/helloworld-ws/src/main/webapp/WEB-INF/jboss-web.xml b/helloworld-ws/src/main/webapp/WEB-INF/jboss-web.xml index 20a5dd9e56..2668181e28 100644 --- a/helloworld-ws/src/main/webapp/WEB-INF/jboss-web.xml +++ b/helloworld-ws/src/main/webapp/WEB-INF/jboss-web.xml @@ -20,6 +20,6 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:jboss:jakartaee:1.0 https://www.jboss.org/schema/jbossas/jboss-web_15_0.xsd" version="15.0"> - / + /helloworld-ws diff --git a/helloworld-ws/src/test/java/org/jboss/as/quickstarts/wshelloworld/ClientIT.java b/helloworld-ws/src/test/java/org/jboss/as/quickstarts/wshelloworld/ClientIT.java index 598a06d224..be5674b616 100644 --- a/helloworld-ws/src/test/java/org/jboss/as/quickstarts/wshelloworld/ClientIT.java +++ b/helloworld-ws/src/test/java/org/jboss/as/quickstarts/wshelloworld/ClientIT.java @@ -38,7 +38,7 @@ public class ClientIT { /** * The path of the WSDL endpoint in relation to the deployed web application. */ - private static final String WSDL_PATH = "HelloWorldService?wsdl"; + private static final String WSDL_PATH = "helloworld-ws/HelloWorldService?wsdl"; protected static URL getHTTPEndpoint() { String host = getServerHost(); @@ -75,11 +75,7 @@ public static void beforeClass() throws MalformedURLException { @Before public void setup() { - try { - client = new Client(new URL(deploymentUrl, WSDL_PATH)); - } catch (MalformedURLException e) { - e.printStackTrace(); - } + client = new Client(deploymentUrl); } @Test