Closed SilleBille closed 4 years ago
Posted by dmoluguw on 2019-09-17:
On initial investigation, the ClassNotFoundException
might be due to the merge of cmscore jar into cms jar: https://github.com/dogtagpki/pki/commits/master/base/server/src/com/netscape/cms/servlet/cert/scep/ChallengePassword.java
Posted by edewata on 2019-09-17:
The stack trace does not point to the origin of the exception, but based on the error message the ClassNotFoundException might have been generated by either one of these lines in JSS:
The code is trying to load a class using the class loader of the current class (i.e. OIDMap). Note that the OIDMap was moved from PKI to JSS last year which also changed the class loader in Tomcat (see https://tomcat.apache.org/tomcat-8.5-doc/class-loader-howto.html).
This will still require further investigation, but I suspect the recent merging of cmscore.jar and cms.jar was probably not the cause because it shouldn't have changed the class loader. It would be nice if the problem can be retested on PKI 10.7.x to confirm that.
Posted by cipherboy on 2019-10-30:
Interestingly, it seems to reference two files which I can't find anywhere (in PKI, Java, or JSS):
x509extensions.oid
x509extensions.classes
This issue was migrated from Pagure Issue #3107.Originally filed by dmoluguw on 2019-09-17
Description: ClassNotFoundException when trying to install and configure scep
Package: pki-10.8.0-0.1
Environment: Fedora 30
Steps to Reproduce:
Configure scep by following the upstream instructions: https://www.dogtagpki.org/wiki/SCEP_Setup
Also
generate CA certificate
And verify by running
generate CSR request and a key
and when trying to test enroll the followng error is generated:
(Could not unwrap PKCS10 blob: java.security.cert.CertificateException: Error instantiating class for challenge_password java.lang.ClassNotFoundException):
Logs: