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.
Jetty WTP Plugin/Jetty WTP Create Server
To create a Jetty Server entry, complete the following steps. <o1>
- In the Select the server type field, scroll down to select Jetty -> Jetty 7.x or Jetty 8.x Server. This document uses the Jetty 7.x Server.
- Click Next. The Jetty Server dialog box opens.
- Select the base directory where you want to install the Jetty server.
- This example selects D:\Servers\jetty-distribution-7.2.x and the download places the stable Jetty v7 server in this folder.
- Once you select a folder, the download begins.
- You have an error because the wizard checks that start.jar exists in the D:\Server\jetty-distribution-7.2.x (this JAR doesn't exist because the download is not finished). In some cases the download is slow.
- When the download completes, click the newly enabled Finish button. You now have a D:\Server\jetty-distribution-7.2.x directory that contains the start.jar...from Jetty 7 :
- A Server Project is created in the workspace
- if you go to WTP Server View , you see the option to launch Jetty v7.0 Server at localhost, which you can use to start/stop/debug the installed Jetty server.
- start.ini from the Jetty install (D:\Servers\jetty-distribution-7.2.x)
- start.config from the JAR start.jar from the Jetty install. Notice that Server/start.config is not the same as Jetty install/start.jar. Jetty Home is not the Jetty Install server but a WTP folder (created in the .metadata of your workspace).
- 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 under Windows when Jetty is started and HTML files are modified (published) with the following option:
<init-param> <param-name>useFileMappedBuffer</param-name> <param-value>false</param-value> </init-param>
When Jetty server is called it uses:
- -Djetty.home : which is the WTP folder.
- -Dinstall.jetty.home : which is the Jetty install folder.