Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Jetty WTP Plugin/Jetty WTP External WebApp

< Jetty WTP Plugin
Revision as of 13:43, 17 November 2010 by Jesse.mcconnell.gmail.com (Talk | contribs) (New page: {{Jetty}} == How to Use External Web Application == To read this section, please modify port with 8080. Sometimes it can be usefull to use a WEB Application which was not created with D...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)



How to Use External Web Application

To read this section, please modify port with 8080.

Sometimes it can be usefull to use a WEB Application which was not created with Dynamic WEB Project (ex : you create your WEB Application with your ANT). You can start this external WEB Application.

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

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

Jetty-wtp-external1.jpg

and unzip it in the D:\tmp :


Jetty-wtp-external2.jpg


Open the launch, go at the Modules tab and click on « Add External Web Module » :


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.

Back to the top