tomcat6 has two webapps/ directories

Bug #575303 reported by Joshua Daniel Franklin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Server papercuts
Fix Released
Low
Thierry Carrez
tomcat6 (Ubuntu)
Fix Released
Low
Thierry Carrez

Bug Description

Binary package hint: tomcat6

tomcat6 creates both /usr/share/tomcat6/webapps/ and /var/lib/tomcat6/webapps/ for some reason. Since the CATALINA_BASE=/var/lib/tomcat6 the first /usr/share is not used at all and it confused me! Please remove /usr/share/tomcat6/webapps/ from the tomcat6 package.

default ubuntu page:
"Tomcat6 veterans might be pleased to learn that this system instance of Tomcat is installed with CATALINA_HOME in /usr/share/tomcat6 and CATALINA_BASE in /var/lib/tomcat6, following the rules from /usr/share/doc/tomcat6-common/RUNNING.txt.gz."

from RUNNING.txt.gz:
"When you use $CATALINA_BASE, Tomcat will calculate all relative references for
files in the following directories based on the value of $CATALINA_BASE instead
of $CATALINA_HOME:"

Revision history for this message
Chuck Short (zulcss) wrote :

Which version is this?

Changed in tomcat6 (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Joshua Daniel Franklin (joshuadfranklin) wrote :

version 6.0.24-2ubuntu1, out of the lucid main repos today.

Get:1 http://ftp.osuosl.org/pub/ubuntu/ lucid/main tomcat6 6.0.24-2ubuntu1 [30.1kB]

Revision history for this message
Joshua Daniel Franklin (joshuadfranklin) wrote :

Also, by the way usr/share/tomcat6/webapps/ is inside data.tar.gz in the deb, and the postinst has this weird line:

    cp -r /usr/share/tomcat6/webapps/default_root /var/lib/tomcat6/webapps/ROOT

Could we include as /var/lib/tomcat6/webapps/ROOT in data.tar.gz and leave off /usr/share/tomcat6/webapps/?

I haven't looked at how this happens from upstream, maybe there something I'm missing.

Thierry Carrez (ttx)
Changed in tomcat6 (Ubuntu):
status: Incomplete → Triaged
Thierry Carrez (ttx)
Changed in server-papercuts:
assignee: nobody → Thierry Carrez (ttx)
importance: Undecided → Low
milestone: none → maverick-alpha-2
status: New → Triaged
Thierry Carrez (ttx)
Changed in server-papercuts:
status: Triaged → In Progress
Changed in tomcat6 (Ubuntu):
status: Triaged → In Progress
Revision history for this message
Thierry Carrez (ttx) wrote :

Fix committed to debian-java SVN, will be in 6.0.26-3.

Changed in tomcat6 (Ubuntu):
assignee: nobody → Thierry Carrez (ttx)
status: In Progress → Fix Committed
Changed in server-papercuts:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package tomcat6 - 6.0.26-3

---------------
tomcat6 (6.0.26-3) unstable; urgency=low

  [ Marcus Better ]
  * Apply upstream fix for deadlock in WebappClassLoader. (Closes: #583896)

  [ Thierry Carrez ]
  * debian/tomcat6.{install,postinst}: Do not store the default root webapp
    in /usr/share/tomcat6/webapps as it increases confusion on what this
    directory contains (and its relation with /var/lib/tomcat6/webapps).
    Store it inside /usr/share/tomcat6-root instead (LP: #575303).
 -- Ubuntu Archive Auto-Sync <email address hidden> Tue, 15 Jun 2010 10:11:17 +0100

Changed in tomcat6 (Ubuntu):
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in server-papercuts:
status: Fix Committed → Fix Released
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.