tomcat5 requires GCJ even though sun-java5-jre is installed

Bug #56733 reported by Mike Vitale
8
Affects Status Importance Assigned to Milestone
Dapper Backports
Invalid
Undecided
Unassigned
libservlet2.4-java (Ubuntu)
Fix Released
Undecided
Unassigned
tomcat5 (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Clean Ubuntu Dapper installation on my HP laptop, with full Sun-Java5 installed.

[root@oftheother ~]$ dpkg -l | grep sun
ii sun-java5-bin 1.5.0-06-1 Sun Java(TM) Runtime Environment (JRE) 5.0
ii sun-java5-demo 1.5.0-06-1 Sun Java(TM) Development Kit (JDK) 5.0 demos
ii sun-java5-jdk 1.5.0-06-1 Sun Java(TM) Development Kit (JDK) 5.0
ii sun-java5-jre 1.5.0-06-1 Sun Java(TM) Runtime Environment (JRE) 5.0
ii sun-java5-plugin 1.5.0-06-1 The Java(TM) Plug-in, Java SE 5.0

[root@oftheother ~]$ apt-cache show sun-java5-jre
...
Provides: java-virtual-machine, java2-runtime

[root@oftheother ~]$ apt-cache show tomcat5
...
Depends: kaffe (>= 2:1.1.6-3) | java-gcj-compat-dev (>= 1.0.41-1) | java2-runtime, libtomcat5-java (>= 5.0.30-9), adduser (>= 3.34), apache-utils (>= 1.3.33-1) | apache2-common

[root@oftheother ~]$ sudo apt-get install tomcat5
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  apache2-common apache2-utils gcj-4.1-base gij-4.1 java-gcj-compat libbcel-java libcommons-beanutils-java libcommons-collections-java
  libcommons-collections3-java libcommons-dbcp-java libcommons-digester-java libcommons-el-java libcommons-fileupload-java libcommons-launcher-java
  libcommons-logging-java libcommons-modeler-java libcommons-pool-java libgcj-common libgcj7 libgcj7-jar liblog4j1.2-java libmx4j-java libregexp-java
  libservlet2.4-java libtomcat5-java
Suggested packages:
  apache2-doc gcj-4.1 libgcj7-awt libbcel-java-doc libcommons-beanutils-java-doc libcommons-collections-java-doc libcommons-collections3-java-doc lib32gcj7-dbg
  jython libapache-mod-jk libapache2-mod-jk tomcat5-webapps tomcat5-admin
Recommended packages:
  libgcj7-src
The following NEW packages will be installed:
  apache2-common apache2-utils gcj-4.1-base gij-4.1 java-gcj-compat libbcel-java libcommons-beanutils-java libcommons-collections-java
  libcommons-collections3-java libcommons-dbcp-java libcommons-digester-java libcommons-el-java libcommons-fileupload-java libcommons-launcher-java
  libcommons-logging-java libcommons-modeler-java libcommons-pool-java libgcj-common libgcj7 libgcj7-jar liblog4j1.2-java libmx4j-java libregexp-java
  libservlet2.4-java libtomcat5-java tomcat5
0 upgraded, 26 newly installed, 0 to remove and 0 not upgraded.
Need to get 21.0MB of archives.
After unpacking 51.1MB of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.

----------------------------

If I have sun-java5-jre installed, which provides java2-runtime (as we discovered in Bug #56497), why does installing tomcat5 also install GCJ packages?

Revision history for this message
Simon Law (sfllaw) wrote :

libservlet2.4-java does not offer java2-runtime as an alternative to java-gcj-compat.

Changed in tomcat5:
importance: Untriaged → Medium
status: Unconfirmed → Confirmed
Revision history for this message
Matti Lindell (mlind) wrote :

Yes, libservlet2.4-java seems to draw gcj dependencies when installing tomcat5.
This is not a tomcat5 bug (anymore).

Revision history for this message
Matti Lindell (mlind) wrote :

Syncing libservlet2.4-java from Debian untable should solve this issue.

libservlet2.4-java (5.0.30-3) unstable; urgency=low

   * kaffe compiler transition
   * Bumped debhelper version to fix linda error
   * Standards-Version 3.6.2 (no changes)
   * Depend on kaffe | java1-runtime | java2-runtime as this is
     currently still policy (closes: #345338)
   * Added myself to uploaders

 -- Wolfgang Baer <email address hidden> Sun, 15 Jan 2006 16:28:08 +0100

Revision history for this message
Matti Lindell (mlind) wrote :

This is now probably duplicate of Bug #50811.

Revision history for this message
Matti Lindell (mlind) wrote :

Fixed on Edgy by libservlet2.4-java 5.0.30-3ubuntu1 upload.

libservlet2.4-java (5.0.30-3ubuntu1) edgy; urgency=low

  * Resynchronise with Debian unstable.
  * Build using java-gcj-compat-dev.

 -- Matthias Klose <email address hidden> Tue, 3 Oct 2006 12:30:52 +0200

libservlet2.4-java (5.0.30-3) unstable; urgency=low

  * kaffe compiler transition
  * Bumped debhelper version to fix linda error
  * Standards-Version 3.6.2 (no changes)
  * Depend on kaffe | java1-runtime | java2-runtime as this is
    currently still policy (closes: #345338)
  * Added myself to uploaders

 -- Wolfgang Baer <email address hidden> Sun, 15 Jan 2006 16:28:08 +0100

Changed in tomcat5:
status: Confirmed → Fix Released
Changed in libservlet2.4-java:
status: Unconfirmed → Fix Released
Changed in tomcat5:
status: Fix Released → Rejected
Revision history for this message
Mike Vitale (ubuntu-bugs-mikevitale) wrote :

Will this change be ported into Dapper?

Revision history for this message
Matti Lindell (mlind) wrote :

I'll open a Dapper task for this, so backporters can review if it's okay to backport the libservlet2.4-java package.

For what it's worth, libservlet2.4-java 5.0.30-3ubuntu1 builds cleanly on Dapper chroot. I don't know if kaffe compiler transition brings any unwanted problems and I'm currently unable to test this.

Revision history for this message
Anthony Durity (anthony-durity) wrote :

<quote>
Syncing libservlet2.4-java from Debian untable should solve this issue.
libservlet2.4-java (5.0.30-3) unstable; urgency=low
</quote>

Sorry about this but how do you sync just this package from debian unstable without bringing all of debian unstable in? Thanks.

Revision history for this message
Matti Lindell (mlind) wrote :

@Anthony
You'll have to rebuild libservlet2.4-java source package.

Revision history for this message
Mike Vitale (ubuntu-bugs-mikevitale) wrote :

Think it should be ok to close this one now...

Revision history for this message
Rolf Leggewie (r0lf) wrote :

dapper is no longer supported and receives no further updates

Changed in dapper-backports:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.