View Issue Details

IDProjectCategoryView StatusLast Update
0005215CentOS-6tomcat6public2011-11-01 13:45
Reporterdmackay 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformallOSCentOSOS Version6 cr
Product Version6.0 
Target VersionFixed in Version 
Summary0005215: The cr repo version requires the use of tomcat-dbcp, which is not included in the packaging
DescriptionApparently the cr version of the tomcat6 (6.0.24-33.el6) has not propagated the changes to use the jakarta commons version of the dbcp by default. You get a class not found error if you're using dbcp. This worked in the vanilla 6.0 release packages.

A temporary work around is to insert the tomcat-dbcp.jar file into /usr/share/tomcat6/lib
Steps To ReproduceTry to use a web app that uses dbcp
TagsNo tags attached.

Activities

athmane

athmane

2011-10-30 15:50

developer   ~0013680

Do you see the same issue with older version of tomcat6 from updates repo ' tomcat6-6.0.24-24.el6_0' or it's specific to the version in CR ?
athmane

athmane

2011-10-30 16:00

developer   ~0013681

Last edited: 2011-10-30 16:00

View 2 revisions

I can't reproduce this issue, jakarta-commons-dbcp is pulled with tomcat6-6.0.24-33.el6.noarch.

# rpm -qR tomcat6-6.0.24-33.el6.noarch
/bin/sh
/bin/sh
/bin/sh
/lib/lsb/init-functions
/lib/lsb/init-functions
/sbin/chkconfig
/sbin/chkconfig
config(tomcat6) = 0:6.0.24-33.el6
jakarta-commons-collections
jakarta-commons-daemon
jakarta-commons-dbcp
<...snip...>

# rpm -ql jakarta-commons-dbcp
/etc/maven/fragments
/etc/maven/fragments/jakarta-commons-dbcp
/usr/share/doc/jakarta-commons-dbcp-1.2.1
/usr/share/doc/jakarta-commons-dbcp-1.2.1/LICENSE.txt
/usr/share/doc/jakarta-commons-dbcp-1.2.1/NOTICE.txt
/usr/share/doc/jakarta-commons-dbcp-1.2.1/README.txt
/usr/share/java/commons-dbcp-1.2.1.jar
/usr/share/java/commons-dbcp.jar
/usr/share/java/hibernate_jdbc_cache.jar
/usr/share/java/jakarta-commons-dbcp-1.2.1.jar
/usr/share/java/jakarta-commons-dbcp.jar
/usr/share/maven2
/usr/share/maven2/poms
/usr/share/maven2/poms/JPP-jakarta-commons-dbcp.pom

# repoquery -R tomcat6
/bin/sh
/lib/lsb/init-functions
/sbin/chkconfig
jakarta-commons-collections
jakarta-commons-daemon
jakarta-commons-dbcp
jakarta-commons-logging
jakarta-commons-pool
java
jpackage-utils
log4j
mx4j
procps
redhat-lsb
shadow-utils
tomcat6-lib = 6.0.24-33.el6

athmane

athmane

2011-10-30 16:03

developer   ~0013682

Also there's a symlink to make it available for tomcat6:

# file /usr/share/tomcat6/lib/commons-dbcp.jar
/usr/share/tomcat6/lib/commons-dbcp.jar: symbolic link to `/usr/share/java/commons-dbcp.jar'
dmackay

dmackay

2011-10-30 21:54

reporter   ~0013684

Things were working fine with the vanilla tomcat 6 up through 6.0.24-24.el6_0. And, I do have commons-dbcp in /usr/share/tomcat6/lib. But I get a stack dump if I don't have tomcat-dbcp in /usr/share/tomcat6/lib. The app that was working immediately prior to the upgrades from the cr repo stopped working until I installed the tomcat-dbcp.jar from tomcat.apache.org 6.0.24 release.
athmane

athmane

2011-11-01 13:45

developer   ~0013687

Seems to be an API breakage, can you report this in upstream's bugzilla[1] (you need to provide the code that cause the issue).

I don't see any jakarta-commons-dbcp updates in the srpms provided by upstream[2] (jakarta-commons-dbcp-1.2.1-13.8.el6.src.rpm).

[1] https://bugzilla.redhat.com/

[2] ftp://ftp.redhat.com/redhat/linux/enterprise/6Server/en/os/SRPMS/

Issue History

Date Modified Username Field Change
2011-10-30 14:37 dmackay New Issue
2011-10-30 15:50 athmane Note Added: 0013680
2011-10-30 16:00 athmane Note Added: 0013681
2011-10-30 16:00 athmane Note Edited: 0013681 View Revisions
2011-10-30 16:03 athmane Note Added: 0013682
2011-10-30 21:54 dmackay Note Added: 0013684
2011-11-01 13:45 athmane Note Added: 0013687