Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-19780

Make webservices in ROOT.war deployments works under "/" path

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 33.0.2.Final
    • None
    • None
    • ---
    • ---

      When remove the jboss-web.xml from helloworld-ws quickstart: https://github.com/wildfly/quickstart/tree/main/helloworld-ws 

      and build with mvn package -Pprovisioned-server , and running this mvn wildfly:start. The webservice endpoint is deployed under ROOT context path: 

      10:34:02,179 INFO  [org.jboss.ws.cxf.metadata] (MSC service thread 1-3) JBWS024061: Adding service endpoint metadata: id=org.jboss.as.quickstarts.wshelloworld.HelloWorldServiceImpl
       address=http://localhost:8080/ROOT/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
       annotationWsdlLocation=null
       wsdlLocationOverride=null
       mtomEnabled=false 

      We can make this work as other ROOT.war deployment and the default context path is "/" instead of "/ROOT"

              rhn-engineering-ema Jim Ma
              rhn-engineering-ema Jim Ma
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: