Package: tomcat7
Severity: minor
Tags: patch

Hi,

When the init script fails to find a Java environment to start Tomcat, it
reports an error "no JDK found". I was misguided by this since I had a
JRE installed and I thought that Tomcat was nonetheless requiring a JDK.
Attached patch ensures that the error message is more clear in this regard.


Thanks,
Thijs

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.9-1-amd64 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
>From 8b90a5b4c216a8392049b19d458173fa0411874c Mon Sep 17 00:00:00 2001
From: Thijs Kinkhorst <th...@uvt.nl>
Date: Fri, 28 Jun 2013 10:46:19 +0200
Subject: [PATCH] When no Java found, mention JRE in error message.

Tomcat will run fine with just a JRE, the error may confuse people that
have a JRE installed that Tomcat is looking for a JDK, while in fact
it can't find their JRE.
---
 debian/tomcat7.init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/tomcat7.init b/debian/tomcat7.init
index 2ea4d9f..eeea1dc 100644
--- a/debian/tomcat7.init
+++ b/debian/tomcat7.init
@@ -184,7 +184,7 @@ catalina_sh() {
 case "$1" in
   start)
 	if [ -z "$JAVA_HOME" ]; then
-		log_failure_msg "no JDK found - please set JAVA_HOME"
+		log_failure_msg "no JDK or JRE found - please set JAVA_HOME"
 		exit 1
 	fi
 
-- 
1.8.3.1

__
This is the maintainer address of Debian's Java team
<http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers>. 
Please use
debian-j...@lists.debian.org for discussions and questions.

Reply via email to