Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

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

m
m
Line 9: Line 9:
  
 
<ol>
 
<ol>
<li>Copy <tt>test.war</tt> from D:\Servers\jetty-distribution-7.1.6.v20100715\webapps
+
<li>Copy <tt>test.war</tt> from D:\Servers\jetty-distribution-7.1.6.v20100715\webapps.
 
</li>
 
</li>
  
Line 25: Line 25:
  
  
<li>To open the launch, in the Modules tab, click '''Add External Web Module'''.
+
<li>Navigate to the Modules tab of your Jetty server, in this case Jetty v7.o Server Local Host.  
</li>The Add Module dialog box opens.
+
</li>
  
  
Line 33: Line 33:
  
  
Fill the dialog like this :
+
 
 +
<li>Click '''Add External Web Module'''.
 +
</li>The Add Module dialog box opens.
  
  
 
[[Image:Jetty-wtp-external4.jpg]]
 
[[Image:Jetty-wtp-external4.jpg]]
  
* document base : D:\tmp\test
 
* Path : /test (it's the context path)
 
  
Click on OK button, test module must appear :
+
 
 +
<li> In the Document Base field, enter  '''D:\tmp\test'''
 +
<li>For the Path, enter '''/test''' (this is the context path)
 +
 
 +
<li>Click '''OK'''.
 +
</li> The test module is now in the list.
 +
 
 +
 
  
 
[[Image:Jetty-wtp-external5.jpg]]
 
[[Image:Jetty-wtp-external5.jpg]]
  
  
If you go at http://localhost:8080/test/  This page show you Jetty home test war :
+
The page http://localhost:8080/test/  now shows you Jetty home test war :
  
 
[[Image:Jetty-wtp-external6.jpg]]
 
[[Image: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.
+
{{note| http://localhost:8080/mywebapp/ is also available in the list of web applications. You can add or remove any dynamic Web project or external Web application.}}

Revision as of 17:31, 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. Navigate to the Modules tab of your Jetty server, in this case Jetty v7.o Server Local Host.

  6. Jetty-wtp-external3.jpg


  7. Click Add External Web Module.
  8. The Add Module dialog box opens.


    Jetty-wtp-external4.jpg


  9. In the Document Base field, enter D:\tmp\test
  10. For the Path, enter /test (this is the context path)
  11. Click OK.
  12. The test module is now in the list.


    Jetty-wtp-external5.jpg


    The page http://localhost:8080/test/ now shows you Jetty home test war :

    Jetty-wtp-external6.jpg

    Note.png
    http://localhost:8080/mywebapp/ is also available in the list of web applications. You can add or remove any dynamic Web project or external Web application.

Back to the top