Question

1
Replies
19
Views
Ronali Pradhan (RonaliP9)
NCS Pte. Ltd
Application Developer
NCS Pte. Ltd
SG
RonaliP9 Member since 2013 15 posts
NCS Pte. Ltd
Posted: June 16, 2021
Last activity: June 30, 2021
Posted: 16 Jun 2021 4:52 EDT
Last activity: 30 Jun 2021 0:03 EDT

Issue in prconfig.xml & prbootstrap.properties while creating custom cipher

Hi All,

We have a requirement to create custom cipher and I followed the below article 

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

As mentioned in the 2nd step of the article, I updated prconfig.xml and prbootstrap.properties files but while deploying war file getting "Unable to obtain DataSource for java:comp/env/jdbc/PegaDATA; javax.naming.NameNotFoundException: java:comp/env/jdbc/PegaDATA" and unable to bring up the app server.

prconfig.xml code snippet:

<env name="database/databases/AdminPegaRULES/dataSource" value="java:comp/env/jdbc/AdminPegaRULES" /> <env name="database/databases/PegaRULES/dataSource" value="java:comp/env/jdbc/PegaRULES" /> <env name="database/databases/PegaDATA/dataSource" value="java:comp/env/jdbc/PegaDATA" /> <env name="database/databases/XXXXX/dataSource" value="java:comp/env/jdbc/XXXXX" />

prbootstrap.properties code snippet:

com.pega.pegarules.bootstrap.allclasses.dbcpsource=example.oracle example.oracle.url=XXXXXXX example.oracle.username=PEGARULES example.oracle.password=XXXX oracle.jdbc.class=oracle.jdbc.OracleDriver

com.pega.pegarules.bootstrap.allclasses.schema=PegaRULES com.pega.pegarules.bootstrap.datatables.schema=PegaDATA

Any help is greatly appreciated!!!

Thanks Ronali

***Edited by Moderator: Pooja Gadige to add platform capability tag***
Pega Platform 8.3 Security