Without any JDK installed, tomcat5.5 installation installs:
The following extra packages will be installed:
ecj jsvc libcommons-daemon-java libecj-java libgcj8-jar
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-daemon-java libecj-java libgcj8-jar tomcat5.5
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://gb.archive.ubuntu.com hardy/main libecj-java 3.3.0+0728-5 [1158kB]
Get: 2 http://gb.archive.ubuntu.com hardy/main libgcj8-jar 4.2.2-3ubuntu2 [10.0MB]
Get: 3 http://gb.archive.ubuntu.com hardy/main ecj 3.3.0+0728-5 [13.6kB]
Get: 4 http://gb.archive.ubuntu.com hardy/universe libcommons-daemon-java 1.0.2~svn20061127-6 [38.9kB]
Get: 5 http://gb.archive.ubuntu.com hardy/universe jsvc 1.0.2~svn20061127-6 [23.7kB]
Get: 6 http://gb.archive.ubuntu.com hardy/universe tomcat5.5 5.5.25-1ubuntu1 [60.0kB]
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-java_3.3.0+0728-5_all.deb) ...
Selecting previously deselected package libgcj8-jar.
Unpacking libgcj8-jar (from .../libgcj8-jar_4.2.2-3ubuntu2_all.deb) ...
Selecting previously deselected package ecj.
Unpacking ecj (from .../ecj_3.3.0+0728-5_i386.deb) ...
Selecting previously deselected package libcommons-daemon-java.
Unpacking libcommons-daemon-java (from .../libcommons-daemon-java_1.0.2~svn20061127-6_all.deb) ...
Selecting previously deselected package jsvc.
Unpacking jsvc (from .../jsvc_1.0.2~svn20061127-6_i386.deb) ...
Selecting previously deselected package tomcat5.5.
Unpacking tomcat5.5 (from .../tomcat5.5_5.5.25-1ubuntu1_all.deb) ...
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-daemon-java (1.0.2~svn20061127-6) ...
Setting up jsvc (1.0.2~svn20061127-6) ...
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/tomcat5.5'.
* 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
Binary package hint: tomcat5.5
Without any JDK installed, tomcat5.5 installation installs:
The following extra packages will be installed: daemon- java libecj-java libgcj8-jar daemon- java libecj-java libgcj8-jar tomcat5.5 gb.archive. ubuntu. com hardy/main libecj-java 3.3.0+0728-5 [1158kB] gb.archive. ubuntu. com hardy/main libgcj8-jar 4.2.2-3ubuntu2 [10.0MB] gb.archive. ubuntu. com hardy/main ecj 3.3.0+0728-5 [13.6kB] gb.archive. ubuntu. com hardy/universe libcommons- daemon- java 1.0.2~svn20061127-6 [38.9kB] gb.archive. ubuntu. com hardy/universe jsvc 1.0.2~svn20061127-6 [23.7kB] gb.archive. ubuntu. com hardy/universe tomcat5.5 5.5.25-1ubuntu1 [60.0kB] java_3. 3.0+0728- 5_all.deb) ... jar_4.2. 2-3ubuntu2_ all.deb) ... 3.3.0+0728- 5_i386. deb) ... daemon- java. daemon- java (from .../libcommons- daemon- java_1. 0.2~svn20061127 -6_all. deb) ... 1.0.2~svn200611 27-6_i386. deb) ... 5_5.5.25- 1ubuntu1_ all.deb) ...
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- daemon- java (1.0.2~ svn20061127- 6) ...
Setting up jsvc (1.0.2~ svn20061127- 6) ... tomcat5. 5'.
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