[Bug 1482893] [NEW] common loader in catalina.properties is wrong

H.-Dirk Schmitt dirk at computer42.org
Sat Aug 8 17:42:19 UTC 2015


Public bug reported:

Please fix the following line in catalina.properties in all tomcat
source packages.

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

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

Following problems with the wrong statement:
1. Odering is wrong: catalina.base should overrule catalina.home here (see class loader howto below).
2. catalina.home is expanded normally to /usr/share/tomcat7, but there is no common directory - it is below
/var/lib/tomcat7 (as expanded by catalina.base).
3. ${catalina.base}/lib,${catalina.base}/lib/*.jar are pointing to non existing directories.  I recommend to skip this part.

For reference see https://tomcat.apache.org/tomcat-7.0-doc/class-loader-howto.html
> The locations searched by this class loader are defined by the common.loader property in
> $CATALINA_BASE/conf/catalina.properties.
> The default setting will search the following locations in the order they are listed:
>
>    unpacked classes and resources in $CATALINA_BASE/lib
>    JAR files in $CATALINA_BASE/lib
>    unpacked classes and resources in $CATALINA_HOME/lib
>    JAR files in $CATALINA_HOME/lib

** Affects: tomcat6 (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: tomcat7 (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: tomcat8 (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: tomcat7 (Debian)
     Importance: Unknown
         Status: Unknown

** Also affects: tomcat7 (Ubuntu)
   Importance: Undecided
       Status: New

** Also affects: tomcat8 (Ubuntu)
   Importance: Undecided
       Status: New

** Bug watch added: Debian Bug tracker #794958
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=794958

** Also affects: tomcat7 (Debian) via
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=794958
   Importance: Unknown
       Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in Ubuntu.
https://bugs.launchpad.net/bugs/1482893

Title:
  common loader in catalina.properties  is wrong

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tomcat6/+bug/1482893/+subscriptions



More information about the Ubuntu-server-bugs mailing list