runPega.bat - Unable to find com.pega.pegarules.exec.internal.util.crypto.JCECapabilities
Hello,
I'm following all steps described in below article to configure site specific cipher :
https://pdn.pega.com/security/how-to-encrypt-passwords-properties-and-blobs
Pega version 7.2.1
SQL Server 2014.
At runtime runPega.bat is unable to find com.pega.pegarules.exec.internal.util.crypto.JCECapabilities.
I've added all jars described in the article but it seems that JCECapabilities and PRCipherGenerator classes are not loaded.
Does anyone has an idea in which jar file these two classes are contained ?
See command line below and exception (prbootstraps.properties and runPega.bat attached as well) :
Hello,
I'm following all steps described in below article to configure site specific cipher :
https://pdn.pega.com/security/how-to-encrypt-passwords-properties-and-blobs
Pega version 7.2.1
SQL Server 2014.
At runtime runPega.bat is unable to find com.pega.pegarules.exec.internal.util.crypto.JCECapabilities.
I've added all jars described in the article but it seems that JCECapabilities and PRCipherGenerator classes are not loaded.
Does anyone has an idea in which jar file these two classes are contained ?
See command line below and exception (prbootstraps.properties and runPega.bat attached as well) :
D:\Pega\Pega\115143_Pega721\scripts>.\runPega.bat --driver D:\TempEncryption\WEB-INF\lib\sqljdbc42.jar --prweb D:\Pega\Tomcat\apache-tomcat-8.5.6\webapps\prweb --propfile D:\Pega\Tomcat\apache-tomcat-8.5.6\webapps\prweb\WEB-INF\classes\prbootstrap.properties "com.pega.p
egarules.exec.internal.util.crypto.JCECapabilities" none
janv. 26, 2017 10:11:35 AM com.pega.pegarules.internal.bootstrap.PRBootstrapDataSource
19830421: Loading bootstrap properties from file:///D:\Pega\Tomcat\apache-tomcat-8.5.6\webapps\prweb\WEB-INF\classes\prbootstrap.properties
janv. 26, 2017 10:11:35 AM com.pega.pegarules.internal.bootstrap.SettingReaderJNDI
19830421: Could not find java:comp/env/prbootstrap/ in the local JNDI context, skipping prconfig setting lookup
janv. 26, 2017 10:11:35 AM com.pega.pegarules.internal.bootstrap.SettingReaderJNDI
19830421: Could not find prbootstrap in the local JNDI context, skipping prconfig setting lookup
janv. 26, 2017 10:11:35 AM com.pega.pegarules.internal.bootstrap.PRBootstrapDataSource
19830421: Bootstrap datatables schema: dbo
janv. 26, 2017 10:11:35 AM com.pega.pegarules.internal.bootstrap.PRBootstrapDataSource
19830421: Archive version [0]
janv. 26, 2017 10:11:35 AM com.pega.pegarules.internal.bootstrap.PRBootstrap
19830421: Engine schema defined in allclasses: rules
janv. 26, 2017 10:11:35 AM com.pega.pegarules.internal.bootstrap.PRBootstrap
19830421: Engine classes schema: rules
janv. 26, 2017 10:11:35 AM com.pega.pegarules.internal.bootstrap.PRBootstrap
19830421: Assembled classes schema: rules
janv. 26, 2017 10:11:35 AM com.pega.pegarules.internal.bootstrap.PRBootstrap
19830421: prbootstrap.properties merged with prbootstrap entries in Data-Admin-System-Settings
janv. 26, 2017 10:11:35 AM com.pega.pegarules.internal.bootstrap.PRMiniLoader
19830421: Will load phase 2 bootstrap from Pega-EngineCode:07-13-04
janv. 26, 2017 10:11:35 AM com.pega.pegarules.internal.bootstrap.PRMiniLoader
SEVERE:
janv. 26, 2017 10:11:35 AM com.pega.pegarules.internal.bootstrap.PRMiniLoader
SEVERE: ============================= Failed to bootstrap PegaRULES =============================
janv. 26, 2017 10:11:35 AM com.pega.pegarules.internal.bootstrap.PRMiniLoader
SEVERE:
janv. 26, 2017 10:11:35 AM com.pega.pegarules.internal.bootstrap.PRMiniLoader
SEVERE: Could not load the java class 'com/pega/pegarules/internal/bootstrap/phase2/PRBootstrapImpl.class' from the database table 'rules.pr_engineclasses'
janv. 26, 2017 10:11:35 AM com.pega.pegarules.internal.bootstrap.PRMiniLoader
SEVERE: This is usually due to an empty 'rules.pr_engineclasses' table, or possibly it does not contain the configured codeset version.
janv. 26, 2017 10:11:35 AM com.pega.pegarules.internal.bootstrap.PRMiniLoader
SEVERE: In this run the prbootstrap.properties specified 'pega-enginecode:07-13-04', checking database...
janv. 26, 2017 10:11:35 AM com.pega.pegarules.internal.bootstrap.PRMiniLoader
SEVERE:
janv. 26, 2017 10:11:36 AM com.pega.pegarules.internal.bootstrap.PRMiniLoader
SEVERE: 'rules.pr_engineclasses' contains a total of 116829 classes, searching for available codesets...
janv. 26, 2017 10:11:36 AM com.pega.pegarules.internal.bootstrap.PRMiniLoader
SEVERE:
janv. 26, 2017 10:11:36 AM com.pega.pegarules.internal.bootstrap.PRMiniLoader
SEVERE: Codeset |Version
janv. 26, 2017 10:11:36 AM com.pega.pegarules.internal.bootstrap.PRMiniLoader
SEVERE: customer |06-01-01
janv. 26, 2017 10:11:36 AM com.pega.pegarules.internal.bootstrap.PRMiniLoader
SEVERE: pega-enginecode |07-10-25
janv. 26, 2017 10:11:36 AM com.pega.pegarules.internal.bootstrap.PRMiniLoader
SEVERE: pegafw-channelservices |07-13-04
janv. 26, 2017 10:11:36 AM com.pega.pegarules.internal.bootstrap.PRMiniLoader
SEVERE:
janv. 26, 2017 10:11:36 AM com.pega.pegarules.internal.bootstrap.PRMiniLoader
SEVERE: Subsequent exceptions relating to class not being found are all related to this root cause...
janv. 26, 2017 10:11:36 AM com.pega.pegarules.internal.bootstrap.PRMiniLoader
SEVERE: Check to make sure the database is correctly configured and that the codeset version specified was correct and is present in that database.
janv. 26, 2017 10:11:36 AM com.pega.pegarules.internal.bootstrap.PRMiniLoader
SEVERE: =========================================================================================
janv. 26, 2017 10:11:36 AM com.pega.pegarules.internal.bootstrap.PRMiniLoader
SEVERE:
janv. 26, 2017 10:11:36 AM com.pega.pegarules.internal.bootstrap.phase2.PRBootstrapImpl
INFO: Using PRAppLoader implementation class: com.pega.pegarules.bootstrap.loader.PRAppLoader
janv. 26, 2017 10:11:36 AM com.pega.pegarules.internal.bootstrap.phase2.PRBootstrapImpl
19830421: PegaRULES signed jar files will be extracted to: D:\extractedFiles
janv. 26, 2017 10:11:36 AM com.pega.pegarules.internal.bootstrap.phase2.PRBootstrapImpl
WARNING: Cannot delete directory: extractedFiles
janv. 26, 2017 10:11:36 AM com.pega.pegarules.internal.bootstrap.phase2.PRBootstrapImpl
19830421: PegaRULES classes will be loaded from the database
janv. 26, 2017 10:11:36 AM com.pega.pegarules.internal.bootstrap.phase2.PRBootstrapImpl
SEVERE: Error initializing PRAppLoader
java.lang.ClassNotFoundException: com.pega.pegarules.bootstrap.loader.PRAppLoader
at com.pega.pegarules.internal.bootstrap.phase2.PRBaseLoader.findClass(PRBaseLoader.java:315)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at com.pega.pegarules.internal.bootstrap.phase2.PRBaseLoader.loadClass(PRBaseLoader.java:240)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at com.pega.pegarules.internal.bootstrap.phase2.PRBootstrapImpl.initializeAppLoader(PRBootstrapImpl.java:1140)
at com.pega.pegarules.internal.bootstrap.phase2.PRBootstrapImpl._finishInitialization_privact(PRBootstrapImpl.java:255)
at com.pega.pegarules.internal.bootstrap.phase2.PRBootstrapImpl.finishInitialization(PRBootstrapImpl.java:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.checkForStartup(PRBootstrap.java:685)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:408)
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingThrowable(AppServerBridgeToPega.java:224)
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethod(AppServerBridgeToPega.java:273)
at com.pega.pegarules.pub.PegaRULES.main(PegaRULES.java:85)
janv. 26, 2017 10:11:36 AM com.pega.pegarules.internal.bootstrap.PRBootstrap
19830421:
============ PegaRULES Bootstrap Configuration ============
Date: Thu Jan 26 10:11:36 CET 2017
Java Version: Oracle Corporation 1.8.0_112
Configuration: file:/D:/Pega/Tomcat/apache-tomcat-8.5.6/webapps/prweb/WEB-INF/classes/prbootstrap.properties
Pega-EngineCode: 07-13-04
Database: Microsoft SQL Server 12.00.5511
Driver: Microsoft JDBC Driver 6.0 for SQL Server 6.0.8112.100
JAR Location: /D:/TempEncryption/WEB-INF/lib/boot/prbootphase2.jar
Active CodeSets: pega-enginecode:07-13-04 at (latest patch)
hc-x12-debatch:06-01-01 at (latest patch)
pegafw-channelservices:07-13-04 at (latest patch)
customer:06-01-01 at (latest patch)
(!) Unable to use given database configuration
Loading classes from the filesystem
=============== End Bootstrap Configuration ===============
janv. 26, 2017 10:11:36 AM com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega
SEVERE: Problem during method invocation (main)
java.lang.RuntimeException: PRAppLoader was not properly initialized, unable to load class com.pega.pegarules.exec.internal.util.crypto.JCECapabilities
at com.pega.pegarules.internal.bootstrap.PRBootstrap.getImplementationOf(PRBootstrap.java:208)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.getEntry(PRBootstrap.java:324)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.getMethod(PRBootstrap.java:304)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:409)
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingThrowable(AppServerBridgeToPega.java:224)
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethod(AppServerBridgeToPega.java:273)
at com.pega.pegarules.pub.PegaRULES.main(PegaRULES.java:85)
Exception in thread "main" java.lang.RuntimeException: Problem during method invocation (main)
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethod(AppServerBridgeToPega.java:279)
at com.pega.pegarules.pub.PegaRULES.main(PegaRULES.java:85)
Caused by: java.lang.RuntimeException: PRAppLoader was not properly initialized, unable to load class com.pega.pegarules.exec.internal.util.crypto.JCECapabilities
at com.pega.pegarules.internal.bootstrap.PRBootstrap.getImplementationOf(PRBootstrap.java:208)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.getEntry(PRBootstrap.java:324)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.getMethod(PRBootstrap.java:304)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:409)
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingThrowable(AppServerBridgeToPega.java:224)
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethod(AppServerBridgeToPega.java:273)
... 1 more
***Updated by moderator: Lochan to add SR Exists group tag***