Bug 1394886 - tomcat7 is packaged with tomcat6-digest
Summary: tomcat7 is packaged with tomcat6-digest
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: JBoss Enterprise Web Server 2
Classification: JBoss
Component: tomcat7
Version: 2.1.2
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Coty Sutherland
QA Contact: Ivo Hradek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-14 16:11 UTC by Ivo Hradek
Modified: 2017-08-04 15:15 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-04 15:15:14 UTC
Type: Bug


Attachments (Terms of Use)

Description Ivo Hradek 2016-11-14 16:11:43 UTC
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.

Comment 1 Coty Sutherland 2016-11-14 16:22:34 UTC
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"

Comment 2 Jan Onderka 2017-07-18 13:33:35 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.