Apache Tomcat


Instalación Java 8
sudo apt-get install oracle-java8-installer

Configuración

wget http://www.eu.apache.org/dist/tomcat/tomcat-8/v8.0.32/bin/apache-tomcat-8.0.32.tar.gz

Copiamos los archivos a las ubicaciones que se listan y copia de los jars a ext de cuerdo a la imagen anterior.

Desde: target/tomcat8x

  1. shared/lib/*.jar

  2. conf/context.xml

  3. conf/catalina.properties

  4. common/lib/*.jar

Hacia /opt/apache-tomcat-8.0.32/lib/ext y /opt/apache-tomcat-8.0.32/lib/conf

cp /CODIGO/workspace/myhippoproject/target/tomcat8x/conf/catalina.properties /opt/apache-tomcat-8.0.32/conf/
cp /CODIGO/workspace/myhippoproject/target/tomcat8x/conf/context.xml /opt/apache-tomcat-8.0.32/conf/
cp /CODIGO/workspace/myhippoproject/target/tomcat8x/common/lib/*.jar /opt/apache-tomcat-8.0.32/lib/ext/
cp /CODIGO/workspace/myhippoproject/target/tomcat8x/shared/lib/*.jar /opt/apache-tomcat-8.0.32/lib/ext/

Configuración VARS ENV

source /.profile

export JAVA_HOME=/usr/lib/jvm/java-8-oracle

export PATH=$PATH:$JAVA_HOME

export MAVEN_HOME=/usr/share/maven

export M2_HOME=/usr/share/maven

export PATH=$PATH:$MAVEN_HOME/bin:$M2_HOME/bin

export CATALINA_HOME=/opt/apache-tomcat-8.0.32

export CATALINA_BASE=$CATALINA_HOME

export PATH=$PATH:$CATALINA_HOME/bin:$CATALINA_BASE/bin

echo $CATALINA_HOME/bin

cd $CATALINA_HOME/bin

tar xvfz commons-daemon-native.tar.gz

cd commons-daemon-1.0.15-native-src/

cd unix

./configure

make

./bin/jsvc -classpath $CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/tomcat-juli.jar -outfile $CATALINA_BASE/logs/catalina.out -errfile $CATALINA_BASE/logs/catalina.err -Dcatalina.home=$CATALINA_HOME -Dcatalina.base=$CATALINA_BASE -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties org.apache.catalina.startup.Bootstrap

Verificamos la instalación y ejecutamos el servisor

$CATALINA_HOME/bin/daemon.sh start

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s