Support Article
NoClassDefFoundError when connecting to external database
SA-62820
Summary
NoClassDefFoundError occurs when connecting to an external database (Neptune) using AWS Java API.
Error Messages
NoClassDefFoundError
Steps to Reproduce
Write a Java code which has AWS API calls.
Root Cause
Classes were missing in the runtime classpath.
Resolution
Perform either of the following local-changes:
Provide 06-01-01 to the 'com.pega.pegarules.bootstrap.codeset.version.Customer' field in the prbootstrap.properties file.
Alternatively, provide the shared library path (which has all the third-party JARs) as the runtime classpath.
To define the runtime class path, refer to:
https://community.pega.com/support/support-articles/unable-save-rule-references-external-java-classes
https://community.pega.com/knowledgebase/articles/about-process-commander-51-class-paths
Published February 9, 2019 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.