Question

Issue while creating custom cipher in Pega Platform

Hi All,

I need to create custom cipher in Pega Platform. I followed the below link

https://community.pega.com/knowledgebase/articles/security/creating-custom-cipher-pega-platform

From the scripts directory, ran runPega.bat with the following parameters:

--driver <path to the database driver file>
--prweb <path to the archives/prweb folder>
--propfile <path to the bootstrap properties file>
com.pega.pegarules.exec.internal.util.crypto.JCECapabilities

but facing below issue

'#check' is not recognized as an internal or external command, operable program or batch file.
Error: Could not find or load main class com.pega.pegarules.pub.PegaRULES

Correct Answer
October 17, 2019 - 2:53am

Problem:

com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name 'PegaDATA.pr_data_admin'.

Do you have below config in prconfig.xml?

<env name="database/databases/PegaDATA/userName" value="PRPC7311DATA" />

<env name="database/databases/PegaDATA/password" value="PRPC7311DATA" />

 

And prbootstrap.properties 

com.pega.pegarules.bootstrap.allclasses.schema=PRPC7311RULES
com.pega.pegarules.bootstrap.datatables.schema=PRPC7311DATA

https://community.pega.com/support/support-articles/pega-installation-fails

Cross check all config with what I have added.

Let me know whether issue was resolved?

 

Comments

Keep up to date on this post and subscribe to comments

Pega
October 10, 2019 - 3:13am

hi,

can you please check if prbootstrap.properties file is updated to the correct codeset version for your Pega platform??

com.pega.pegarules.bootstrap.codeset.version.Pega-EngineCode=07-xx-xx

October 17, 2019 - 2:15am
Response to setha1

Yes setha, com.pega.pegarules.bootstrap.codeset.version.Pega-EngineCode is updated to the correct codeset version

com.pega.pegarules.bootstrap.codeset.version.Pega-EngineCode=07-10-33

October 17, 2019 - 2:18am
Response to Kiran Kumar

Please try what I have suggested below, it will solve your issue

October 10, 2019 - 5:32am

Hi,

Can you open runPega.bat or runPega.sh and update the below line with correct version of the jar you have in the system.

set classpath=%classpath%;%warDir%\WEB-INF\lib\jsr94-1.0.jar;%warDir%\WEB-INF\lib\prbootstrap-api.jar;%warDir%\WEB-INF\lib\prbootstrap.jar;%warDir%\WEB-INF\lib\prdbcp.jar

NOTE: The above line may be different based on Pega version you have

In 7.3.1

In Pega 8.1

You can also try below and see if it works

set classpath=%classpath%;%warDir%\WEB-INF\lib\*

Also there has been different issues identified in the below post. May help you 

https://community1.pega.com/community/product-support/question/runpegabat-encryption-blobs-running-jcecapabilities-determine

Thank You

October 10, 2019 - 6:11am

Hi,

I have attached the file with the changes I have made. You can refer them

You may or may not pass code version, both will work. Please refer the attached file and modification.

Major one is what I suggested above

set classpath=%classpath%;%warDir%\WEB-INF\lib\*

I have added run logs as well.

Thank You

October 17, 2019 - 2:49am
Response to Shekhar_Shubham

Thanks Shekhar, after updating classpath in runPega.bat to the correct jar file names and commenting  out the line '#check if ...' in runPega.bat solved the current issue.

October 17, 2019 - 2:38am
Response to Kiran Kumar

Cross check the prbootstap.properties and prconfig.xml which I have attached. Now the issue is only with finding the file and loading the setting.

Verify what values you are passing and how I have passed them

October 17, 2019 - 3:02am
Response to Shekhar_Shubham

Thanks Shekhar, the command is working now. I missed database Name in the url in prbootstrap.properties file. All good now.

Thanks again !

October 17, 2019 - 2:53am
Response to Kiran Kumar

Problem:

com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name 'PegaDATA.pr_data_admin'.

Do you have below config in prconfig.xml?

<env name="database/databases/PegaDATA/userName" value="PRPC7311DATA" />

<env name="database/databases/PegaDATA/password" value="PRPC7311DATA" />

 

And prbootstrap.properties 

com.pega.pegarules.bootstrap.allclasses.schema=PRPC7311RULES
com.pega.pegarules.bootstrap.datatables.schema=PRPC7311DATA

https://community.pega.com/support/support-articles/pega-installation-fails

Cross check all config with what I have added.

Let me know whether issue was resolved?

 

October 17, 2019 - 3:02am
Response to Shekhar_Shubham

Thanks Shekhar, the command is working now. I missed database Name in the url in prbootstrap.properties file. All good now.

Thanks again !