tomcat6 and tomcat7 are not installable side-by-side

Bug #1031395 reported by Mina Galić
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
tomcat7 (Debian)
Fix Released
Unknown
tomcat7 (Ubuntu)
Confirmed
Wishlist
Unassigned

Bug Description

The two packages libtomcat6-java and libtomcat7-java are incompatible to each other, and I don't understand why. Simply giving them different paths could've solved this problem and let us run them side-by-side. We still have many apps which target Tomcat 6, only the new ones are targeting Tomcat 7 as a platform. It would be a great simplification if we could install them on the same machines.

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Agreed, I believe alternatives should be used for the common files so that users can select the "default" ones.

Here are the files that are common to both in quantal:

/usr/share/java/catalina-ant.jar
/usr/share/java/catalina-tribes.jar
/usr/share/java/tomcat-coyote.jar
/usr/share/java/tomcat-i18n-es.jar
/usr/share/java/tomcat-i18n-fr.jar
/usr/share/java/tomcat-i18n-ja.jar
/usr/share/java/tomcat-juli.jar

That said, its hard to recommend spending much time on tomcat6. One can always use a chroot (see the 'schroot' package for a nice interface to these) to serve them both from the same machine.

Setting to Confirmed/Wishlist

Changed in tomcat7 (Ubuntu):
status: New → Confirmed
importance: Undecided → Wishlist
Revision history for this message
Mark Thornton (mthornton-2) wrote :

It may not be worth fixing for tomcat 6, but perhaps when tomcat 8 arrives a little bit of thought when constructing the package would avoid the problem.

Revision history for this message
Mina Galić (minagalic) wrote :

Right now I have resorted to (re)packaging these myself.

affects: debian → tomcat7 (Debian)
Changed in tomcat7 (Debian):
status: Unknown → New
Revision history for this message
A1an (alan-b) wrote :

@Igor can't your repackaged versions be simply put back to the main repo to become available and configuration merged to solve this issue?

Revision history for this message
A1an (alan-b) wrote :

Even worse, once you go for Tomcat7 there is no way back to Tomcat6 with apt, reported error is:

The following packages have unmet dependencies:
 tomcat6 : Depends: tomcat6-common (>= 6.0.35-1ubuntu3.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

On Ubuntu 12.04 LTS

Revision history for this message
A1an (alan-b) wrote :

This is still affecting Debian 7.2 as of today, is any workaround available meantime?

Changed in tomcat7 (Debian):
status: New → Fix Released
Revision history for this message
Emmanuel Bourg (ebourg) wrote :

This has been fixed in tomcat8 where the /usr/share/java files now start with "tomcat8". tomcat7 wasn't changed, but since tomcat6 has been removed this is no longer an issue in Debian 8 Jessie.

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.