Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#27693 - [tomcat7] tomcat7 packaging missing tomcat-dbcp.jar

Attached to Project: Arch Linux
Opened by Bryce Nordgren (bnordgren) - Friday, 23 December 2011, 22:38 GMT
Last edited by Guillaume ALAUX (galaux) - Sunday, 01 April 2012, 11:44 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Guillaume ALAUX (galaux)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
The packaging for tomcat7 lacks the tomcat-dbcp.jar file. It has commons-dbcp.jar, but this is different, and the relevant classes are in a different package. This leads to a "ClassNotFound" exception when tomcat tries to establish a data source (e.g., when it tries to handle a <Resource ... /> element inside a <Context ... /> element.) Specifically, org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory cannot be located.

I downloaded the binary distribution from Apache, and it includes tomcat-dbcp.jar but not commons-dbcp.jar. I attached a screenshot of the lib directory.

Additional info:
* package version(s) : 7.0.23-1



Steps to reproduce:
1] pacman -S tomcat7
2] ls /usr/share/tomcat7/lib (note absence of tomcat-dbcp.jar).
This task depends upon

Closed by  Guillaume ALAUX (galaux)
Sunday, 01 April 2012, 11:44 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in 7.0.25-1
Comment by Bryce Nordgren (bnordgren) - Tuesday, 27 December 2011, 19:03 GMT
Fixed it. It's definitely a packaging error w/ArchLinux. The tomcat7 build.xml antfile will make the tomcat-dbcp.jar by downloading the source release of commons-pool and commons-dbcp, copying it into the tomcat7 source tree, renaming everything to the org.apache.tomcat.dbcp.dbcp namespace, and recompiling it all. The current PKGBUILD attempts to use the commons-dbcp.jar from apache as-is. That's not going to work. :)

The attached patch against the tomcat7 PKGBUILD resolves the issue on my machine.
Comment by Guillaume ALAUX (galaux) - Sunday, 29 January 2012, 18:18 GMT
Fixed on 7.0.25-1. Thanks and sorry for the delay.
Comment by Guillaume ALAUX (galaux) - Wednesday, 22 February 2012, 21:10 GMT
@bnordgren: could you post the "<Resource ...>" you are using to reproduce this "bug" please?
Comment by Bryce Nordgren (bnordgren) - Thursday, 23 February 2012, 19:06 GMT
Context fragment containing <Resource .../> element.

The difference, however, is between the official Tomcat binary releases and the Arch packaging (which starts from source). :)

Loading...