Packages depending on JRE might not have a usable JRE when configured
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Intrepid |
Invalid
|
Undecided
|
Unassigned | ||
commons-daemon (Ubuntu) |
Invalid
|
Low
|
Unassigned | ||
Intrepid |
Invalid
|
Undecided
|
Unassigned | ||
java-common (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Intrepid |
Invalid
|
Undecided
|
Unassigned | ||
openjdk-6 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Intrepid |
Invalid
|
Undecided
|
Unassigned | ||
tomcat6 (Ubuntu) |
Invalid
|
Low
|
Unassigned | ||
Intrepid |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: tomcat6
In some cases Tomcat 6 fails to successfully start *during install*. This doesn't prevent the installation from succeeding and you can still run "sudo service tomcat6 start" to start it once it is installed.
If a JRE is not completely configured by the time Tomcat is started, Tomcat will fail to start. This can happen in some installation scenarios as Tomcat 6 doesn't formally "pre-depend" on a JRE.
For example, on a minimal system, the packages seem to be configured in that order (some lines removed for clarity):
$ sudo apt-get install tomcat6 tomcat6-examples tomcat6-admin tomcat6-user
Setting up default-
Setting up openjdk-6-jre-lib (6b12-0ubuntu4) ...
Setting up tomcat6 (6.0.18-0ubuntu3) ...
* Starting Tomcat servlet engine tomcat6 ...fail!
Setting up openjdk-
However if you run:
$ sudo apt-get install tomcat6
Setting up openjdk-6-jre-lib (6b12-0ubuntu4) ...
Setting up default-
Setting up openjdk-
Setting up tomcat6 (6.0.18-0ubuntu3) ...
* Starting Tomcat servlet engine tomcat6 [OK]
Related branches
Changed in tomcat6: | |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in apt (Ubuntu Intrepid): | |
status: | New → Invalid |
The problem is not a pre-depend one but rather a circular dependency in openjdk-6 (bug 291123) and sun-java6 (bug 291128). Those circular dependencies are arbitrarily broken at some point and may result in Tomcat trying to start while the JRE is not yet available...