Hi, I installed tomcat 6.0.20 on openbsd 4.8 release
No problem with installation and configuration but when I try to start tomcat with sudo -u _tomcat /usr/local/tomcat/bin/startup.sh in /etc/rc.local tomcat couldn't start. Output from console /usr/local/tomcat/bin/catalina.sh: /etc/tomcat/tomcat.rc[11]: javaPathHelper: not found Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these environment variable is needed to run this program Edit `/etc/tomcat/tomcat.rc' to point to your $JAVA_HOME Starting tomcat from rc.local without switch user (i.e. using root) has no problem. so the problem is that tomcat.rc can't find javaPathHelper when starting from rc.local with sudo. So I modified /etc/tomcat/tomcat.rc and atteched a diff. Best regards -- Matteo Filippetto http://op83.blogspot.com
--- /etc/tomcat/tomcat.rc.org Thu Apr 14 15:57:16 2011 +++ /etc/tomcat/tomcat.rc Thu Apr 14 15:57:03 2011 @@ -8,7 +8,7 @@ # path. If it is not set it will default the jdk that # satisfied the RUN_DEPEND. -JAVA_HOME=$(javaPathHelper -h tomcat) +JAVA_HOME=$(/usr/local/bin/javaPathHelper -h tomcat) JAVA_OPTS=-server # override other environment options: