I’m having difficulty running Tomcat7 as a service under Linux Mint 13. I’m installing from source rather than from the apt-get repository
Environment variables:
$JAVA_HOME: /usr/lib/jvm/java
$JRE_HOME: /usr/local/java/jre1.7.0_07
$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/tyler/bin:/usr/local/java/jdk1.7.0_07/bin:/home/tyler/bin:/usr/local/java/jre1.7.0_07/bin:/usr/lib/jvm/java/bin
CATALINA_HOME=/usr/local/tomcat
Any suggestions?
When attempting to start the service (/usr/share/tomcat7/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/local/jdk1.7.0_07/jre
Using CLASSPATH: /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar
Error: Firefox can’t establish a connection to the server at localhost:8080
No other error dialogues appear.
Your JAVA_HOME and JRE_HOME are inconsistent (and JRE_HOME is not the same in your 2 examples). Anyway, you don’t need both, as a JDK contains a JRE ( it’s a super-set). So just set your JAVA_HOME and you should be ready to go.