I have a working application that I typically run via maven command line or via Eclipse, so it always finds the dependencies. I decided to build this as a fat jar with all dependencies so I could use a simple classpath and not have to manage all of the dependent jars. I simply modified my pom file to re-package the application as a fat jar and then tried to run the application via command line to see if it would work as it does via the maven command line. I've done this for several other applications, and have them all running under docker, so I thought this one would be just another one to knock out.
However, when I run the application, I'm finding that the following lines are both returning null.
KieServices services = KieServices.Factory.get();
KieHelper kieHelper = new KieHelper();
I really only need the KieHelper, but I thought the fact that both are returning null might be a clue to what is happening.
My application is a JPBM workflow based application that constructs a KieBase using KieHelper to add processes, register workitem handlers, and listeners based on a configuration files that define the contents to load. I then construct a KieSession and start process instances in the engine based on an external schedule and/or events. In the fat jar deployment, I can't even get past step 1.
Any ideas what is happening?