Jump to: navigation, search

Difference between revisions of "Jetty WTP Plugin/Jetty WTP External WebApp"

m
m
Line 13: Line 13:
  
  
<li>[[Image:Jetty-wtp-external1.jpg]]
+
[[Image:Jetty-wtp-external1.jpg]]
 +
 
 +
 
  
 
<li>unzip <tt>test.war</tt> in  D:\tmp :
 
<li>unzip <tt>test.war</tt> in  D:\tmp :
Line 24: Line 26:
  
 
<li>To open the launch, in the Modules tab, click '''Add External Web Module'''.
 
<li>To open the launch, in the Modules tab, click '''Add External Web Module'''.
</li>
+
</li>The Add Module dialog box opens.
  
  

Revision as of 16:17, 18 November 2010



Using an External Web Application

Sometimes it can be useful to use a web application that you created by other means than Dynamic WEB Project (for example, by using Ant).

For instance, the Jetty7 distribution provides a test.war which shows you the features of Jetty 7 (WebSocket..). Here we use this WAR without creating a Dynamlc Web Project to start it.

  1. Copy test.war from D:\Servers\jetty-distribution-7.1.6.v20100715\webapps

  2. Jetty-wtp-external1.jpg


  3. unzip test.war in D:\tmp :

  4. Jetty-wtp-external2.jpg


  5. To open the launch, in the Modules tab, click Add External Web Module.
  6. The Add Module dialog box opens.


    Jetty-wtp-external3.jpg


    Fill the dialog like this :


    Jetty-wtp-external4.jpg

    • document base : D:\tmp\test
    • Path : /test (it's the context path)

    Click on OK button, test module must appear :

    Jetty-wtp-external5.jpg


    If you go at http://localhost:8080/test/ This page show you Jetty home test war :

    Jetty-wtp-external6.jpg

    You can notice that http://localhost:8080/mywebapp/ is available too. You can add/remove as you wish any Dynamic Web Project or External WEB Application.