Closed ahmed-shariff closed 4 years ago
That must be a classpath issue on your side.
The generated Service JAR file is not completely self-contained; it depends on the JPMML-Evaluator library, which in turn depends on the JPMML-Model library.
The org.dmg.pmml.PMML
class resides inside the JPMML-Model library JAR file (Apache Maven coordinates org.jpmml:pmml-model
). Please make sure that this artifact is on your application classpath.
You were right, I added the PMML
classes ClassLoader
as the parent to the URLClassLoader
, and it solves the problem:
...
try(URLClassLoader clazzLoader = new URLClassLoader(classpath, PMML.class.getClassLoader())){
...
I get the following error when I try to load the transpiled models:
I tried the following:
I've attached the associated jar file for your reference. Any help or pointers would be much appreciated.