Bug#521318: tomcat6: provide additional directory for the common class loader

Marcus Better marcus at better.se
Thu Mar 26 16:46:30 UTC 2009


Package: tomcat6
Version: 6.0.18-3
Severity: wishlist

In order to add jars to Tomcat's common class loader, it is necessary
to add them to /usr/share/tomcat6/lib. This is messy since the admin's
additions are mixed up with system files. It should not be necessary
for the admin to change things in /usr just to configure the server.

Another directory should be provided, probably
/var/lib/tomcat6/lib. This is easy, just add it in
catalina.properties:

common.loader=/var/lib/tomcat6/lib,/var/lib/tomcat6/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar

Similarly for tomcat6-user, this works:

common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar

(There are also entries for server.loader and shared.loader, I don't
know if Tomcat 6 supports those and wasn't able to get them to work.)

-- System Information: Debian Release: squeeze/sid APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.29-melech (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=sv_SE.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages tomcat6 depends on:
ii  adduser              3.110               add and remove users and groups
ii  jsvc                 1.0.2~svn20061127-9 wrapper to launch Java application
ii  tomcat6-common       6.0.18-3            Servlet and JSP engine -- common f

tomcat6 recommends no packages.

Versions of packages tomcat6 suggests:
pn  tomcat6-admin                 <none>     (no description available)
pn  tomcat6-docs                  <none>     (no description available)
pn  tomcat6-examples              <none>     (no description available)

-- no debconf information





More information about the pkg-java-maintainers mailing list