Question
Accenture
BR
Last activity: 19 Nov 2019 7:43 EST
prbootstrap.properties: Unable to load phase 2 bootstrap class: com.pega.pegarules.internal.bootstrap...
Hello,
I'm trying to configure the file prbootstrap.properties with credentials of my database (SQL Server) to encrypt db user password. Can anyone help me with this? The prbootstrap.properties content is:
com.pega.pegarules.bootstrap.allclasses.dbcpsource=microsoft.sqlserver
microsoft.sqlserver.url=<url>
microsoft.sqlserver.username=<username>
microsoft.sqlserver.password=<password>
microsoft.sqlserver.class=com.microsoft.sqlserver.jdbc.SQLServerDriver
com.pega.pegarules.bootstrap.allclasses.schema=PEGARULES
com.pega.pegarules.bootstrap.datatables.schema=PEGADATA
I understand that the variable "name" in property "com.pega.pegarules.bootstrap.allclasses.dbcpsource=<name>" is a alias that I choose to reference my database configuration and credencials below, it's that right?
***Moderator Edit-Vidyaranjan: Updated Platform Capability***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
IN
Hi,
You are right. I have done configuration for Oracle, you can follow on same line
#Oracle Example
com.pega.pegarules.bootstrap.allclasses.dbcpsource=shekhar.oracle
shekhar.oracle.url=jdbc:oracle:thin:@localhost:1521:orcl
shekhar.oracle.username=PRPC7311BASE
shekhar.oracle.password=PRPC7311BASE
oracle.jdbc.class=oracle.jdbc.OracleDriver
For Sqlserver:
com.pega.pegarules.bootstrap.allclasses.dbcpsource=shekhar.mssql
shekhar.mssql.url=jdbc:sqlserver://<serverName>:<port>
shekhar.mssql.username=<username>
shekhar.mssql.password=<password>
mssql.jdbc.class=com.microsoft.sqlserver.jdbc.SQLServerDriver
com.pega.pegarules.bootstrap.allclasses.schema=<schemaName>
com.pega.pegarules.bootstrap.datatables.schema=<schemaName>
Thank You
Accenture
BR
Hi,
I replace "microsoft.sqlserver" to "pega.mssql" but I still got the error above:
Unable to load phase 2 bootstrap class: com.pega.pegarules.internal.bootstrap.phase2.PRBootstrapImpl
Error initializing PRAppLoader
and more ...
Do you know what error is this?
Pegasystems Inc.
IN
Do you have this line ?
mssql.jdbc.class=com.microsoft.sqlserver.jdbc.SQLServerDriver
Can you attach the log file and prbootstap.properties file here with what changes you have done?
Accenture
BR
Yes, I have this line.
I can't attach the log and prbootstrap.properties because there are in a server without internet and I can't download files too.
But, my prbootstrap.properties content is about:
com.pega.pegarules.bootstrap.allclasses.dbcpsource=test.mssql
test.mssql.url=jdbc:sqlserver://<host>:<port>
test.mssql.username=<username>
test.mssql.password=<password>
mssql.class=com.microsoft.sqlserver.jdbc.SQLServerDriver
com.pega.pegarules.bootstrap.allclasses.schema=PEGARULES
com.pega.pegarules.bootstrap.datatables.schema=PEGADATA
That is the part that I make changes on the file.
And the errors in the log are: Unable to load phase 2 bootstrap class ... etc etc.
Problem during method invocation (main) PRAppLoader was not properly initialized, unable to load class ...crypto.KeyringImpl
Pegasystems Inc.
IN
I don't think problem is with this part. You can revert the change the result should be same. Can you copy paste entire log error stack?
Accenture
BR
Sorry, as I say previous, the server dont have connecion with Internet and it's impossible to attach or copy the log... Could you make the full process of encrypt a SQL Server DB user password with PassGen and KeyringImpl? Or give me a guide to do this...
Pegasystems Inc.
IN
Please refer below link for Encrypting password:
Pegasystems Inc.
US
can you attach the complete log?
Accenture
BR
Hi,
Please, see the reply below.
Accenture
BR
Archive this.