** Summary changed:

- Installation of tomcat5.5 fails if sun-java-jdk is not installed
+ Installation of tomcat5.5 fails if openjdk-6 or a JRE is installed

** Description changed:

  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-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
+ 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.

-- 
Installation of tomcat5.5 fails if openjdk-6 or a JRE is installed
https://bugs.launchpad.net/bugs/179447
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to