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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • None
    • 2017.3.3
    • None
    • None
    • 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

    Attachments

      Activity

        People

          bmcwhirt@redhat.com Bob McWhirter (Inactive)
          ppalaga Peter Palaga
          Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

          Dates

            Created:
            Updated:
            Resolved: