You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Runtime classpath problem with maven dependencies #925
install decision
cd insurance-decision
mvn clean install
run the client from maven work as expected
mvn clean exec:java
open and execute the class: client.EmbedMain
Current Result
Loading failed because Cannot create instance of class: org.kie.pmml.assembler.PMMLAssemblerService
Exception in thread "main"
java.lang.ExceptionInInitializerError
at org.kie.api.internal.utils.ServiceRegistry.getInstance(ServiceRegistry.java:27)
ServiceRegistry.java:27
at org.kie.api.KieServices$Factory$LazyHolder.(KieServices.java:341)
at org.kie.api.KieServices$Factory.get(KieServices.java:348)
(...)
vscode-java is not providing the Java running facilities in VS Code. That would be https://github.com/Microsoft/vscode-java-debug. Now it seems you're running mvn directly, so that's probably not even vscode's issue. You should see the exact same results when running in a terminal.
I won't be able to look at this issue until the next few days, but maybe someone else can help you investigate in the meantime.
Hi @fbricon thank you for the prompt reply, I've open the same issue in vscode-java-debug.
BTW, the execution in maven command line was there just for comparison.
Now it's not more relevant since the same vscode has 2 different behaviour depending on the workspace root.
Activity
dmarrazzo commentedon May 18, 2019
Hi @fbricon
is it the right place for this issue?
Thank you
dmarrazzo commentedon May 18, 2019
I've noticed this behavior:
In order to debug, I've added those lines at the beginning of the main:
The output (attached) shows that the classpath is significantly different:
parent.txt
inner.txt
fbricon commentedon May 18, 2019
vscode-java is not providing the Java running facilities in VS Code. That would be https://github.com/Microsoft/vscode-java-debug. Now it seems you're running mvn directly, so that's probably not even vscode's issue. You should see the exact same results when running in a terminal.
I won't be able to look at this issue until the next few days, but maybe someone else can help you investigate in the meantime.
dmarrazzo commentedon May 18, 2019
Hi @fbricon thank you for the prompt reply, I've open the same issue in vscode-java-debug.
BTW, the execution in maven command line was there just for comparison.
Now it's not more relevant since the same vscode has 2 different behaviour depending on the workspace root.
dmarrazzo commentedon May 23, 2019
It's a bug of vscode-java-debug, so I'm closing here.
I'm looking forward to see the resolution! Thank you