Question
New South Wales State Government
AU
Last activity: 17 Oct 2019 3:13 EDT
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
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
IN
Problem:
com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name 'PegaDATA.pr_data_admin'.
Do you have below config in prconfig.xml?
com.pega.pegarules.bootstrap.datatables.schema=PRPC7311DATA
Pegasystems Inc.
US
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
New South Wales State Government
AU
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
Pegasystems Inc.
IN
Please try what I have suggested below, it will solve your issue
Pegasystems Inc.
IN
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
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
Thank You
Pegasystems Inc.
IN
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
New South Wales State Government
AU
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.
Pegasystems Inc.
IN
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
New South Wales State Government
AU
Thanks Shekhar, the command is working now. I missed database Name in the url in prbootstrap.properties file. All good now.
Thanks again !
Accepted Solution
Pegasystems Inc.
IN
Problem:
com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name 'PegaDATA.pr_data_admin'.
Do you have below config in prconfig.xml?
com.pega.pegarules.bootstrap.datatables.schema=PRPC7311DATA
New South Wales State Government
AU
Thanks Shekhar, the command is working now. I missed database Name in the url in prbootstrap.properties file. All good now.
Thanks again !