Christian Kalkhoff created TOMEE-1706:
-----------------------------------------

             Summary: Standalone WAR (autoWar) gets not deployed at / (ROOT)
                 Key: TOMEE-1706
                 URL: https://issues.apache.org/jira/browse/TOMEE-1706
             Project: TomEE
          Issue Type: Bug
          Components: TomEE Core Server
    Affects Versions: 7.0.0-M1
            Reporter: Christian Kalkhoff


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). 

{code}
container.deploy(String, File)
{code}

has been refactored to 

{code}
container.deploy(String, File, boolean)
{code}

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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to