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

Difference between revisions of "Jetty WTP Plugin/Jetty WTP Create Server"

(New page: {{Jetty Feature |introduction = How to create jetty server. === subheader as h3 === more text |body = == Step 1 == To create a WTP Jetty/Server, go at File/New/Other... and select Ser...)
 
Line 1: Line 1:
 
{{Jetty Feature
 
{{Jetty Feature
|introduction =
 
How to create jetty server.
 
  
=== subheader as h3 ===
+
=== Creating the Jetty Server ===
more text
+
  
 
|body =
 
|body =
Line 68: Line 65:
 
* webdefault.xml is modified to avoid locking HTML files (when sJetty is started and HTML files are modified (published) with the option  :
 
* webdefault.xml is modified to avoid locking HTML files (when sJetty is started and HTML files are modified (published) with the option  :
  
 +
<source lang="xml">
 
                         <init-param>
 
                         <init-param>
 
               <param-name>useFileMappedBuffer</param-name>
 
               <param-name>useFileMappedBuffer</param-name>
 
<param-value>false</param-value>
 
<param-value>false</param-value>
 
     </init-param>
 
     </init-param>
 +
</source>
  
 
== more subheaders ==
 
 
=== sub-subheader ===
 
etc
 
 
}}
 
}}

Revision as of 13:12, 17 November 2010

{{Jetty Feature

Creating the Jetty Server

|body =

Step 1

To create a WTP Jetty/Server, go at File/New/Other... and select Server node :

Jetty-wtp-create1.jpg

Step 2

Click on Next button. You can use Jetty7x or Jetty 8x. In this documentation we will use Jetty 7.0 Server :

Jetty-wtp-create2.jpg

Step 3

Click on Next button, now you must specify the installation directory for Jetty. Use Browse button to do that OR click on Download and Install... button to download the Jetty v7. In this documentation, we will do that. :

Jetty-wtp-create3.jpg

Step 4

Click on Download and Install... the dialog opens :

Jetty-wtp-create4.jpg

Step 5

Accept the license and click on Finish button. Select the base directory where you wish install the Jetty. In my case I have selected D:\Servers\jetty-distribution-7.1.6.v20100715 and the download will set stable Jetty v7 server in this folder.

Jetty-wtp-create5.jpg

Once you have selected a folder, download is processed. You have an error because the wizard check that start.jar exist in the D:\Server\jetty-distribution-7.1.6.v20100715 (this JAR doesn't exist because the download is not finished).

In my case, download is slowly. Wait for enabling Finish button. Once Download is finished, Finish button is enable

Step 6

Once download is finished, you will have D:\Server\jetty-distribution-7.1.6.v20100715 which contains start.jar...from the Jetty7 :

Jetty-wtp-create6.jpg

Step 7

Click on Next button, here you can select existing Dynamic Web project from your workspace. In this documentation, teher are not WTP Dynamic WebProject.

Jetty-wtp-create7.jpg


Step 8

Click on Finish button :

  • A Server Project is created in the workspace
  • if you go at WTP Server View , you will see the launch Jetty v7.0 Server at localhost that you can use to start/stop/debug the Jetty install server.

Jetty-wtp-create8.jpg

Servers contains the Jetty v7.0 Server at localhost-config folder which contains :

  • start.ini coming from the Jetty install (D:\Servers\jetty-distribution-7.1.6.v20100715)
  • start.config : coming from the JAR start.jar from the Jetty install. You can notice Server/start.config is not the same than Jetty install/start.jar. Jetty Home is not the Jetty Install server but a WTP folder (created in the .metdata of your workspace). When Jetty server is called it use :
    • -Djetty.home : which is the WTP folder.
    • -Dinstall.jetty.home : which is the Jetty install folder.
  • the jetty*.xml files which are declared in the original start.ini. Jetty*.xml files are preprocessed too to transform <Property to <SystemProperty.
  • webdefault.xml is modified to avoid locking HTML files (when sJetty is started and HTML files are modified (published) with the option  :
                        <init-param>
      			        <param-name>useFileMappedBuffer</param-name>
				<param-value>false</param-value>
    			</init-param>

}}

Back to the top