Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
7.0.0-M1
-
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.