[rules-users] KieContainer kContainer = ks.newKieContaine ....

Ravi Gupta rkgupta75 at gmail.com
Fri Dec 6 08:26:14 EST 2013


Have a question using drools 6 - I am following the example:

Repo looks fine, rules and artifact in:
.m2/repository/org/acme/brms/acmepoc/1.0

code seems straightforward:
  // Install example1 in the local maven repo before to do this
        KieContainer kContainer =
ks.newKieContainer(ks.newReleaseId("org.acme.brms", "acmepoc", "1.0"));

but get:
Exception in thread "main" java.lang.RuntimeException: Cannot find
KieModule: org.acme.brms:acmepoc:1.0
    at org.drools.compiler.kie.
builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:86)
    at
com.sample.KieContainerFromKieRepoExample.go(KieContainerFromKieRepoExample.java:15)
    at
com.sample.KieContainerFromKieRepoExample.main(KieContainerFromKieRepoExample.java:26)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20131206/9e52085a/attachment.html 


More information about the rules-users mailing list