ICE includes a jetty webserver, which can be used test out your compiled package without deploying it to
tomcat. The jetty settings are defined in $ICE_HOME/jetty-debug.xml
. You will need to generate
a self-signed certificate as ICE uses HTTPS by default.
To generate a self-signed certificate run:
keytool -genkey -alias tomcat -keyalg RSA -keystore ./.keystore
Follow the prompts and enter the requested information. When prompted for a password, you may use
. If you opt for a different password, make sure to enter that is jetty-debug.xml.
Copy the generated .keystore file to $ICE_HOME and start jetty by running:
mvn jetty:run -Dmaven.test.skip=true
Point your browser to https://localhost:8443 to access the application.
To run a tomcat server, you may also use the generated keystore file. Update
to redirect port 8080 to port 8443 using the following Connector
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true" keystoreFile="./.keystore"
keystorePass="changeit" clientAuth="false" sslProtocol="TLS" />
In a production environment you will need to purchase an SSL certificate, since self-generated certificates
result in browser warnings.