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.
Difference between revisions of "Jetty WTP Plugin/Jetty WTP External WebApp"
(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...) |
m |
||
Line 1: | Line 1: | ||
{{Jetty}} | {{Jetty}} | ||
− | == | + | == Using an External Web Application == |
− | |||
− | Sometimes it can be | + | 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 Jetty7 distribution provides a test.war which | + | For instance, the Jetty7 distribution provides a <tt>test.war</tt> which shows you the features of Jetty 7 (WebSocket..). Here we use this WAR without creating a Dynamlc Web Project to start it. |
− | Copy test.war from D:\Servers\jetty-distribution-7.1.6.v20100715\webapps | + | <ol> |
+ | <li>Copy <tt>test.war</tt> from D:\Servers\jetty-distribution-7.1.6.v20100715\webapps | ||
+ | </li? | ||
− | |||
− | + | <li>[[Image:Jetty-wtp-external1.jpg]] | |
+ | |||
+ | <li>unzip <tt>test.war</tt> in D:\tmp : | ||
+ | </li> | ||
+ | |||
Line 19: | Line 23: | ||
− | + | <li>To open the launch, in the Modules tab, click '''Add External Web Module'''. | |
+ | </li> | ||
+ | |||
Revision as of 17:11, 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.
- Copy test.war from D:\Servers\jetty-distribution-7.1.6.v20100715\webapps </li?
- unzip test.war in D:\tmp :
- To open the launch, in the Modules tab, click Add External Web Module.
- document base : D:\tmp\test
- Path : /test (it's the context path)
Fill the dialog like this :
Click on OK button, test module must appear :
If you go at http://localhost:8080/test/ This page show you Jetty home test war :