Default Paths are not getting loaded
Classes from jar files defined in the path Settings >Compiler >Default path landing page is not loading by PRPC class loader.
Failed to get setting with key: "compiler/defaultClasses" and owning ruleset: "Pega-RULES". PegaRULES database context is not available.
Failed to get setting with key: "compiler/defaultPaths" and owning ruleset: "Pega-RULES". PegaRULES database context is not available.
Steps to Reproduce
- Add list of jars in Setting >Compiler > Default Path landing page separated by semicolon (;).
- Invoke the functionality that uses class in jar file mentioned in above step.
While starting of the system, no external jar files were getting read by class loader as it was not able to read the class path correctly.
In compiler settings in Systems settings landing page Default Paths value is given with ";" separated between jars.
At engine value is being read and tokenized based on System property "path.separator". In Windows "path.separator" is ; but in Unix "path.separator" is :.
From the logs, it is found that customer is on Linux machine.
Make the change in the Default Paths value, to give multiple jars with : separated.
The path separator for separating multiple path in Default path setting must be according to environment where PRPC is running.
For Windows platform the separator should be semicolon and for Linux / Unix it should be colon (:)
0% found this useful