Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-1164

-Dswarm.context.path=/my-path not honored after -jar

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2017.3.3
    • Component/s: None
    • Labels:
      None
    • Steps to Reproduce:
      Hide
      cd ~/scratch
      git clone https://github.com/wildfly-swarm/wildfly-swarm-examples
      cd jaxrs/jaxrs
      mvn clean package
      java -jar target/*-swarm.jar -Dswarm.context.path=/my-path
      

      ACTUAL: The log contains

       INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 4) WFLYUT0021: Registered web context: /
      

      http://127.0.0.1/my-path returns `This is our exception page!`

      EXPECTED: The log contains

       INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 4) WFLYUT0021: Registered web context: /my-path
      

      http://127.0.0.1/my-path should return `Howdy at ...`

      Workaround: change order of CLI args:

      java -Dswarm.context.path=/my-path -jar target/*-swarm.jar
      
      Show
      cd ~/scratch git clone https: //github.com/wildfly-swarm/wildfly-swarm-examples cd jaxrs/jaxrs mvn clean package java -jar target/*-swarm.jar -Dswarm.context.path=/my-path ACTUAL: The log contains INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 4) WFLYUT0021: Registered web context: / http://127.0.0.1/my-path returns `This is our exception page!` EXPECTED: The log contains INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 4) WFLYUT0021: Registered web context: /my-path http://127.0.0.1/my-path should return `Howdy at ...` Workaround: change order of CLI args: java -Dswarm.context.path=/my-path -jar target/*-swarm.jar

      Gliffy Diagrams

        Attachments

          Activity

            People

            • Assignee:
              bob.mcwhirter Bob McWhirter
              Reporter:
              ppalaga Peter Palaga
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: