Bug#298314: /etc/init.d/tomcat4 start fails; log says JAVA_HOME is not defined correctly
Herman Robak
"Herman Robak" <herman@skolelinux.no>, 298314@bugs.debian.org
Sat Mar 19 15:26:03 2005
On Mon, 14 Mar 2005 13:31:14 -0500, Barry Hawkins <barry@alltc.com> wrote:
> ~ Try installing a Sun or Blackdown JDK and tell me if your tomcat4
> installation will work with that.
I'd rather not. I am investigating how to run tomcat in a free software
environment. Having Sun's JDK as a prerequisite does not cut it; it is
actually a showstopper. The Norwegian Debian-edu distribution Skolelinux
has a hard requirement: All software on the CD shall work out of the box,
without Internet connection (can not require a download of JDK) and there
must be no restrictions on redistribution (which rules out shipping Sun's
JDK).
> If we can get a "known good" setup, maybe we can figure out your issue.
> If that does not work, I would recommend purging the packages and starting
> fresh. I am fairly certain that it is not a bug with the package(s).
That depends on the definition of "bug". I think I found the problem.
A startup script invoked by tomcat4...
/usr/share/tomcat4/bin/setclasspath.sh
...is checking for the existance of jdb:
if [ ! -x "$JAVA_HOME"/bin/java -o ! -x "$JAVA_HOME"/bin/jdb -o ! -x "$JAVA_HOME
"/bin/javac ]; then
echo "The JAVA_HOME environment variable is not defined correctly"
echo "This environment variable is needed to run this program"
echo "NB: JAVA_HOME should point to a JDK not a JRE"
And there is no jdb in the kaffe package.
--
Herman Robak