tomcat startup.sh trouble finding JAVA_HOME
Posted
by peter
on Stack Overflow
See other posts from Stack Overflow
or by peter
Published on 2010-04-02T13:44:53Z
Indexed on
2010/04/02
13:53 UTC
Read the original article
Hit count: 197
tomcat
I am a bit puzzled by this strange behavior on CentOs 5.4 when starting Tomcat 6.0 as a service
I've added a script at /etc/init.d/tomcat that can start/stop/restart Apache Tomcat 6.0 with user 'tomcat', and registered it as service. The problem with the service is that I am getting a 'Neither the JAVA_HOME nor the JRE_HOME environment variable is defined'. But when type 'sudo -u tomcat echo $JAVA_HOME' I get '/usr/java/jdk1.5.0_22' which is correct since I am using that JDK. What can I do about this?
© Stack Overflow or respective owner