So I've followed the list of steps on : https://www.digitalocean.com/community/articles/how-to-install-apache-tomcat-on-ubuntu-12-04.
When I try to run the startup script, I get this message:
$CATALINA_HOME/bin/startup.sh
Using CATALINA_BASE: /usr/share/tomcat7
Using CATALINA_HOME: /usr/share/tomcat7
Using CATALINA_TMPDIR: /usr/share/tomcat7/temp
Using JRE_HOME: /usr/lib/jvm/default-java
Using CLASSPATH:
/usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar
touch: cannot touch `/usr/share/tomcat7/logs/catalina.out': No such file or directory
/usr/share/tomcat7/bin/catalina.sh: 389: /usr/share/tomcat7/bin/catalina.sh: cannot create /usr/share/tomcat7/logs/catalina.out: Directory nonexistent
What am I supposed to do to fix this? And am I supposed to modify the CATALINA_BASE
variable?
sudo apt-get install tomcat7
? – Braiam Sep 25 '13 at 20:39sudo apt-get install tomcat7
thensudo apt-get install default-jdk
, and then I modified the /.bashrc file by addingexport JAVA_HOME=/usr/lib/jvm/default-java
andexport CATALINA_HOME=~/path/to/tomcat
. – sportsfan72 Sep 25 '13 at 20:41sudo
. – zwets Sep 25 '13 at 21:11