Bug 679574 - Velocity fails to load all dependent classes
Summary: Velocity fails to load all dependent classes
Alias: None
Product: Dogtag Certificate System
Classification: Retired
Component: Installer (pkicreate/pkiremove)
Version: 9.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: RHCS Maintainers
QA Contact: Ben Levenson
Depends On:
Blocks: dogtagIPAv2 679580
TreeView+ depends on / blocked
Reported: 2011-02-22 21:42 UTC by John Dennis
Modified: 2019-08-31 19:31 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 679580 (view as bug list)
Last Closed:

Attachments (Terms of Use)
setup links to {jakarta,apache}-commons-collection.jar (4.31 KB, patch)
2011-02-22 21:46 UTC, John Dennis
awnuk: review+
Details | Diff

Description John Dennis 2011-02-22 21:42:28 UTC
Velocity has a dependency on jakarta-commons-collections and jakarta-commons-lang. Bug #658926 added the dependency on jakarta-commons-lang but the same patch removed jakarta-commons-collections as an explicitly enabled jar in the web instance class loader because jakarata-commons-collections was being loaded by tomcat6 via the container class loader, it was felt this was redundant. The tomcat6 version of jakarta-commons-collections worked fine on Fedora because it was a current version. But on RHEL 6 the version of jakarta-commons-collections loaded by the container class loader is an older version (from tomcat5?).

Velocity is loaded by the web app instance, the system version of jakarta-commons-collections should be available to the same class loader and not depend on the container class loader. The fix is add back the symlink to jakarta-commons-collections to the web app library directory.

However, as per bug #665388 it's not sufficient to set up links to jakarta-commons-collections because the jar names have been renamed in F14 and above. Therefore the link creation logic in pkicreate needs to follow the model for other jakarata-commmons-* jars.

Comment 1 John Dennis 2011-02-22 21:46:05 UTC
Created attachment 480262 [details]
setup links to {jakarta,apache}-commons-collection.jar

Comment 2 John Dennis 2011-02-22 22:43:41 UTC
Sending        base/setup/pkicreate
Transmitting file data .
Committed revision 1863.

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