Support Article

ClassNotFoundException when setting up JNDI Server



User is planning to set up an EJB connection with an external Java application and trying to set up the JNDI rule.

So they are setting up JNDI server in Pega 7.2.1 on WebSphere Liberty profile and typed "" as "Initial context factory".

However, after saving the rule and clicking "Test connectivity", an error popped up.

Error Messages

Configuration Issues
Required classes are not available. Please check the configuration.

Error Details:

Steps to Reproduce

1. Setup Pega 7.2.1 environment with WebSphere Liberty Profile
2. Create "JNDI Server" rule.
3. Type "" for "Initial context factory".
4. Type valid "Provider URL".
5. Save the JNDI Server rule.
6. Click "Test connectivity" button.

Root Cause

The root cause is in the third-party product WebSphere Liberty profile WsnInitialContextFactory is deprecated in this version.


Perform the following local-change:
  1. Copy the jar which contains WsnInitialContextFactory ( in the ext folder of web server.
  2. Restart the node.
One can also include the jar in the prconfig file as below:
    <env name="classloader/classpath" value="dir/applib/thirdParty.jar" />

Published October 8, 2020

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.