Skip to content

Runtime classpath problem with maven dependencies #925

Description

@dmarrazzo

[provide a description of the issue]

Environment
  • Operating System: Linux Fedora 30

  • JDK version: penjdk version "1.8.0_212"
    OpenJDK Runtime Environment (build 1.8.0_212-b04)
    OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)

  • Visual Studio Code version: 1.33.1

  • Java extension version: 0.44.0

  • pref
    "java.home": "/usr/lib/jvm/java-1.8.0-openjdk/",
    "java.jdt.ls.vmargs": "-noverify -Xmx3G -Xss128M -XX:+UseG1GC -XX:+UseStringDeduplication",

Steps To Reproduce
  1. import projects:
    https://gitlab.com/ba-demos/dmn-insurance/insurance-decision
    https://gitlab.com/ba-demos/dmn-insurance/kie-client

  2. install decision
    cd insurance-decision
    mvn clean install

  3. run the client from maven work as expected
    mvn clean exec:java

  4. 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)
(...)

Expected Result

Run as:
mvn clean exec:java

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions