Configuring Jetty in Helma 1.x
Due to the recent update to Jetty 6.1 in Helma the options described in this document only apply to Helma versions <=1.6.3.
To obtain better control over Jetty in a Helma installation the following patch enables Jetty to be configured from an XML file called jetty.xml in Helma's installation directory.
An example file is provided, too, configuring a NCSA log file, a generic listener on port 8080, an AJP listener on port 8009, a static context for Helma's static directory, a password protected context running two Jetty servlets as well as an SSL listener on port 8443.
For the latter one, you also need the jetty.keystore file which contains two self-signed certificates for the host names 127.0.0.1 and localhost.
To try it out apply the patch to the Helma source and drop the other two attached files into the Helma installation directory. You should disable any definitions of HTTP or AJP ports in the start script or properties file to avoid interference with Helma's settings.
The patch adds the argument
-c defining the location of the configuration file to the launcher.jar command-line invocation:
java -jar launcher.jar -c jetty.xml
Note: Starting with Helma 1.6.3 the -c switch is officially available. Applying the patch is only necessary if you are using an older version.
The secure server should be available via https://localhost:8443 – you probably need to define some security exceptions in your browser due to the self-signed certificates.