Jump to: navigation, search

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

m
m
(One intermediate revision by the same user not shown)
Line 27: Line 27:
  
  
<li>Navigate to the Modules tab of your Jetty server, in this case ''Jetty v7.0 Server Local Host''.  
+
<li>Navigate to the Modules tab of your Jetty server, in this case ''Jetty v7.0 Server at localhost''.  
 
</li>
 
</li>
  
Line 44: Line 44:
  
  
<li> In the Document base field, enter  '''D:\tmp\test'''
+
<li> In the Document base field, enter  '''D:\tmp\test'''.
<li>For the Path, enter '''/test''' (this is the context path)
+
<li>For the Path, enter '''/test''' (this is the context path).
  
 
<li>Click '''OK'''.  
 
<li>Click '''OK'''.  
Line 53: Line 53:
  
 
[[Image:Jetty-wtp-external5.jpg]]
 
[[Image:Jetty-wtp-external5.jpg]]
 +
  
  
 
The page <nowiki>http://localhost:8080/test/</nowiki>  now shows you Jetty home test WAR:
 
The page <nowiki>http://localhost:8080/test/</nowiki>  now shows you Jetty home test WAR:
 +
  
 
[[Image:Jetty-wtp-external6.jpg]]
 
[[Image:Jetty-wtp-external6.jpg]]
 +
 +
  
 
{{note|The list of web applications also includes <nowiki>http://localhost:8080/mywebapp/</nowiki>. You can add or remove any dynamic Web project or external Web application.}}
 
{{note|The list of web applications also includes <nowiki>http://localhost:8080/mywebapp/</nowiki>. You can add or remove any dynamic Web project or external Web application.}}

Revision as of 16:45, 18 November 2010



Using an External Web Application

Sometimes you want to use a web application that you created by other means than generating a 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.

Note.png
The example that follows works only if the port for your web application is 8080.


  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.0 Server at localhost.

  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 Web Modules list.


    Jetty-wtp-external5.jpg


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


    Jetty-wtp-external6.jpg


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