Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-1706

Standalone WAR (autoWar) gets not deployed at / (ROOT)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.0.0-M1
    • Fix Version/s: 7.0.0-M2
    • Component/s: TomEE Core Server
    • Labels:
      None

      Description

      When I created a self running WAR as described in TOMEE-1579 and start it using java -jar /path/to/my-1.0.0.war it starts TomEE and deploys the web application at http://localhost:8080/me-1.0.0 instead of http://localhost:8080.

      Debugging org.apache.tomee.embedded.Main it turns out, that there is a bug at line 92 (7.0.0-M1).

      container.deploy(String, File)
      

      has been refactored to

      container.deploy(String, File, boolean)
      

      where to old method (the one called from main) defaults to false. The boolean parameter decides wether the context path from the caller is used instead of the default name. So either chaning the default to "true" or calling container.deploy(String, File, boolean) from main should fix this.

        Attachments

          Activity

            People

            • Assignee:
              romain.manni-bucau Romain Manni-Bucau
              Reporter:
              softmetz Christian Kalkhoff
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: