Hide Forgot
Description of problem: Rpm tomcat7-0:7.0.54-23_patch_05.ep6.el7.noarch.rpm contains tomcat7-digest, which is exactly same as tomcat6-digest. Running: $ sha256sum ./usr/bin/tomcat6-digest ./usr/bin/tomcat7-digest fee7f518b99138dd167581b86ebd68c3d848b494bbc67d3fada0d00d610b56b8 ./usr/bin/tomcat6-digest fee7f518b99138dd167581b86ebd68c3d848b494bbc67d3fada0d00d610b56b8 ./usr/bin/tomcat7-digest Script tomcat7-digest contains variables like TOMCAT_CFG=/etc/tomcat6/tomcat6.conf, which obviously points to tomcat6 not tomcat7.
This issue has been there since the package was created :( It also affects a couple of other scripts (luckily the configuration ones are commented out): $ grep tomcat6 * | grep -v .patch | grep -v tomcat7.spec tomcat7-7.0.conf:# System-wide configuration file for tomcat6 services tomcat7-7.0.conf:# This will be sourced by tomcat6 and any secondary service tomcat7-7.0-digest.script:# tomcat6-digest script tomcat7-7.0-digest.script: TOMCAT_CFG="/etc/tomcat6/tomcat6.conf" tomcat7-7.0-digest.script:BASE_JARS="commons-daemon tomcat6/catalina servlet" tomcat7-7.0.policy:// Users must perform the following steps to run EWS/tomcat6 with the tomcat7-7.0.sysconfig:# Service-specific configuration file for tomcat6. This will be sourced by tomcat7-7.0.sysconfig:# /etc/tomcat6/tomcat6.conf, thus allowing values to be overridden in tomcat7-7.0.sysconfig:# your changes in /etc/tomcat6/tomcat6.conf tomcat7-7.0.sysconfig:# /etc/init.d/tomcat6 (do not copy the init script) and make a copy of the tomcat7-7.0.sysconfig:# /etc/sysconfig/tomcat6 file to /etc/sysconfig/<your new service> and change tomcat7-7.0.sysconfig:#CATALINA_PID="/var/run/tomcat6.pid" tomcat7-7.0.sysconfig:# Connector port is 8080 for this tomcat6 instance tomcat7-7.0-tool-wrapper.script:# tomcat6-digest script tomcat7-7.0-tool-wrapper.script: TOMCAT_CFG="/etc/tomcat6/tomcat6.conf" tomcat7-7.0-tool-wrapper.script:BASE_JARS="commons-daemon tomcat6/catalina servlet"
It is not working, tomcat6-digest as well as tomcat7-digest have missing jars at classpath. Ones has to add CLASSPATH="${CLASSPATH}:${CATALINA_HOME}/lib/servlet-api.jar" to make it works. Also tomcat6-tool-wrapper and tocamt7-tool-wrapper are not working due to the same issue.