Wie für die Bereitstellung der web-Anwendung zu jetty9 als root-Anwendung?

Wenn ich jetty6, ich benutze die folgenden:

<Configure class="org.mortbay.jetty.webapp.WebAppContext">


  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <!-- Required minimal context configuration :                        -->
  <!--  + contextPath                                                  -->
  <!--  + war OR resourceBase                                          -->
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <Set name="contextPath">/</Set>
  <Set name="resourceBase"><SystemProperty name="jetty.home" default="."/>/webapps/myapp</Set>

</Configure>

diese Datei befindet sich im Ordner Kontexte,benannt myapp.xml

Aber Schalter auf Steg 9, Erstens gibt es keinen solchen Ordner "Kontexte", und ich legte myapp.xml in webapps wie test.xml, starten Sie jetty und navigieren Sie zu http://localhost:8080, die Seite bleibt Standard, nicht meine Anwendung.

Kann jemand mir einen Tipp geben?

  • "Funktioniert nicht" ist nie eine ausreichende Fehlerbeschreibung.
InformationsquelleAutor Tom | 2013-04-01
Schreibe einen Kommentar