Installation of tomcat5.5 fails if openjdk-6 or a JRE is installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tomcat5.5 (Debian) |
Fix Released
|
Unknown
|
|||
tomcat5.5 (Ubuntu) |
Fix Released
|
Medium
|
Thierry Carrez | ||
Hardy |
Fix Released
|
High
|
Unassigned |
Bug Description
Binary package hint: tomcat5.5
Hardy Release: Current as of 20071230 via dist-upgrade
Without any JDK installed, tomcat5.5 installation installs:
The following extra packages will be installed:
ecj jsvc libcommons-
Suggested packages:
libapache-mod-jk libapache2-mod-jk tomcat5.5-webapps tomcat5.5-admin
Recommended packages:
ecj-gcj libecj-java-gcj
The following NEW packages will be installed
ecj jsvc libcommons-
0 upgraded, 6 newly installed, 0 to remove and 2 not upgraded.
Need to get 11.3MB of archives.
After unpacking 13.2MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get: 1 http://
Get: 2 http://
Get: 3 http://
Get: 4 http://
Get: 5 http://
Get: 6 http://
Fetched 11.3MB in 39s (290kB/s)
Selecting previously deselected package libecj-java.
(Reading database ... 202930 files and directories currently installed.)
Unpacking libecj-java (from .../libecj-
Selecting previously deselected package libgcj8-jar.
Unpacking libgcj8-jar (from .../libgcj8-
Selecting previously deselected package ecj.
Unpacking ecj (from .../ecj_
Selecting previously deselected package libcommons-
Unpacking libcommons-
Selecting previously deselected package jsvc.
Unpacking jsvc (from .../jsvc_
Selecting previously deselected package tomcat5.5.
Unpacking tomcat5.5 (from .../tomcat5.
Setting up libecj-java (3.3.0+0728-5) ...
Setting up libgcj8-jar (4.2.2-3ubuntu2) ...
Setting up ecj (3.3.0+0728-5) ...
Setting up libcommons-
Setting up jsvc (1.0.2~
Setting up tomcat5.5 (5.5.25-1ubuntu1) ...
Adding system user `tomcat55' (UID 117) ...
Adding new user `tomcat55' (UID 117) with group `nogroup' ...
Not creating home directory `/usr/share/
* no JDK found - please set JAVA_HOME
invoke-rc.d: initscript tomcat5.5, action "start" failed.
dpkg: error processing tomcat5.5 (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
tomcat5.5
E: Sub-process /usr/bin/dpkg returned an error code (1)
WIth the sun-java6-jdk installed this problem does not occur.
--
In fact the problem is more general : on a system where openjdk-6-jdk, openjdk-6-jre, java-gcj-compat or sun-java6-jre is installed but not java-gcj-compat-dev or sun-java6-jdk, then install will fail. This is because the "java2-runtime" dependency would be satisfied but the init script of Tomcat5.5 would not recognize them as a valid JAVA_HOME.
Changed in tomcat5.5: | |
status: | Unknown → New |
Changed in tomcat5.5: | |
importance: | Low → Medium |
Changed in tomcat5.5: | |
status: | Triaged → In Progress |
Changed in tomcat5.5: | |
assignee: | nobody → tcarrez |
Changed in tomcat5.5: | |
importance: | Undecided → High |
status: | New → Confirmed |
description: | updated |
Changed in tomcat5.5: | |
assignee: | tcarrez → nobody |
Changed in tomcat5.5 (Debian): | |
status: | New → Confirmed |
Changed in tomcat5.5 (Ubuntu): | |
status: | Fix Released → Won't Fix |
Changed in tomcat5.5 (Ubuntu): | |
status: | Won't Fix → Fix Released |
Changed in tomcat5.5 (Debian): | |
status: | Confirmed → Fix Released |
The installation by itself seem to work, but the start attempt of tomcat fails. Maybe the dependencies should be adjust such that a JDK can be found by tomcat and the start does not fail.