A web server for hosting Java or servlet applications.

  1. Installing SSL on Tomcat 7

I get the following exception when trying to start SSL on Tomcat5

SEVERE: Exception trying to load keystore /usr/share/tomcat5/.keystore
java.security.KeyStoreException: JKS
   at java.security.KeyStore.getInstance(libgcj.so.7rh)
SEVERE: Error starting endpoint
java.io.IOException: Exception trying to load keystore /usr/share/tomcat5/.keystore: JKS
SEVERE: Catalina.start: 
LifecycleException:  service.getName(): "Catalina";  Protocol handler start failed: java.io.IOException: Exception trying to load keystore /usr/share/tomcat5/.keystore: JKS


  1. Use keytool to generate a SSL certificate at /usr/share/tomcat5/.keystore. more information
  2. Switch JVMs from the GNU JVM to the real Sun JVM. source, how to
  3. Edit /etc/tomcat5/tomcat5.conf to point to the new JVM:
# you could also override JAVA_HOME here
# Where your java installation lives
# JAVA_HOME="/usr/lib/jvm/java"

Setting the Tomcat Proxy

If you have a web application that needs to go through a Proxy but hasn’t been set manually in the code, you can add it to Java’s startup command line switches:

  1. Open the Tomcat service manager in the toolbar, and select Configure…
  2. Select the Java tab
  3. Add the following lines to your Java Options: