Bug 682021
Summary: | pkisilent needs xml-commons-apis.jar in it's classpath | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | John Dennis <jdennis> | ||||
Component: | pki-core | Assignee: | Matthew Harmsen <mharmsen> | ||||
Status: | CLOSED ERRATA | QA Contact: | Chandrasekar Kannan <ckannan> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 6.1 | CC: | benl, dpal, jgalipea, mharmsen, nsoman | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | pki-core-9.0.3-7.el6 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | 682013 | Environment: | |||||
Last Closed: | 2011-05-19 13:44:09 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | 682013 | ||||||
Bug Blocks: | |||||||
Attachments: |
|
Description
John Dennis
2011-03-03 22:47:26 UTC
IPA_v2_RHEL_6_1_ERRATA_BRANCH: # cd pki # svn status | grep -v ^$ | grep -v ^P | grep -v ^X | grep -v ^? M base/silent/scripts/pkisilent M base/setup/pkicreate # svn commit base/silent/scripts/pkisilent base/setup/pkicreate Sending base/setup/pkicreate Sending base/silent/scripts/pkisilent Transmitting file data .. Committed revision 1879. Extrapolating from Bugzilla Bug #681367: ./pki/scripts/pki_patch_maker 1876 1879 pki-core 9.0.3 pki-core-9.0.3-r1879.patch Created attachment 482345 [details]
Patch + spec file changes
IPA_v2_RHEL_6_1_ERRATA_BRANCH: # cd pki # svn status | grep -v ^$ | grep -v ^P | grep -v ^X | grep -v ^? A patches/pki-core-9.0.3-r1879.patch M specs/pki-core.spec # svn commit Adding patches/pki-core-9.0.3-r1879.patch Sending specs/pki-core.spec Transmitting file data .. Committed revision 1880. Published patch to http://pki.fedoraproject.org/pki/sources/pki-core/ Using: ipa-server-2.0.0-23.el6.x86_64 Can successfully install ipa server. ipa-server-install makes a call to pkicreate as part of its step: [2/17]: creating pki-ca instance and calls pkisilent as part of its step: [4/17]: configuring certificate server instance .... these installs are successful. Does that mean pkisilent has xml-commons-apis.jar in it's classpath? > Does that mean pkisilent has xml-commons-apis.jar in it's classpath?
Not necessarily, Java classes are loaded in a lazy manner, a class is only loaded when it is first referenced. If the run time execution does not make a reference to the class you won't hit the NoClassDef exception.
That said it's likely that IPA's use of the CA is sufficient to cause a reference to the class. But perhaps a better test might be to remove the jar from the class loader path, if it's getting referenced it should fail. Now you know a reference was made. Then put the jar back, it should succeed. That would be a positive test.
The jars appear in the class path via the presence of symbolic link in one of the lib directories under instance directory, the symlink points to the system copy of the jar. You need to find which directory the link is in, remove it, test, set it back, test again. For the CA the two directories where the links appear are:
/var/lib/pki-ca/webapps/ca/WEB-INF/lib
/var/lib/pki-ca/common/lib
I verified this today. It turned out that I had to yank out symlink /usr/share/java/xml-common-api.jar from the CLASSPATH as that's the one mentioned in /usr/bin/pkisilent. If I remove it, pkisilent does not work. If I put it back in place, pkisilent works fine to create/configure the CA. marking bug verified. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHEA-2011-0627.html |