Skip to content
Aitor Magán García edited this page Mar 5, 2015 · 3 revisions
  • Install Oracle java7:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
sudo apt-get install oracle-java7-set-default
  • Install tomcat apr:
wget hthttp://apache.rediris.es//apr/apr-<VERSION>.tar.gz
tar zxvf apr-<VERSION>.tar.gz
rm apr-<VERSION>.tar.gz
cd apr-<VERSION> *
sudo ./configure
sudo make
sudo make install
export LD_LIBRARY_PATH='$LD_LIBRARY_PATH:/usr/local/apr/lib'
  • Install tomcat tomcat-native: (included in CATALINA_HOME/bin/tomcat-native.tar.gz)
cd $CATALINA_HOME/bin
tar zxvf tomcat-native.tar.gz
cd tomcat-native-<VERSION>-src/jni/native
sudo ./configure --with-apr=/usr/local/apr --with-java-home=$JAVA_HOME
sudo make
sudo make install
  • Configure server.xml. A new connector has to be added:
<Connector protocol="org.apache.coyote.http11.Http11AprProtocol" port="443"
              scheme="https" secure="true" SSLEnabled="true"
              SSLCertificateFile="<PATH_TO_CERTIFICATE_FILE>"
              SSLCertificateKeyFile="<PATH_TO_CERTIFICATE_KEY_FILE>"
              SSLCertificateChainFile="<PATH_TO_CERTIFICATE_CHAIN_FILE>"  />

Clone this wiki locally