Hallo,
der apache-tomcat kann das hier:
Im apache-tomcat macht man das so in conf/context.xml:
<Context docBase="/path/release/ROOT.war" path="/webapp/test">
So etwas Suche ich nun schon seit 2 Tagen für den jetty. Dieser Link hier hat mir nicht weitergeholfen: Jetty/Howto/SetContextPath - Eclipsepedia
Weil er leider nicht beschreibt, wie ich den Pfad zum war File angeben kann.
Diverse Tests haben mich leider auch nicht weitergebracht. Z.B. soetwas in jetty/contexts/context.xml führt nicht dazu, dass der Jetty in /tmp/Jetty.... über die URL http://server:8888/webapp/test erreichbar ist > <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- Required minimal context configuration : -->
<!-- + contextPath -->
<!-- + war OR resourceBase -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<Set name="contextPath">/webapp/test</Set>
<Set name="war"><SystemProperty name="jetty.home" default="."/>/webapps/ROOT.war</Set>
Wer kann mir bitte helfen?
Viele Grüße