KieContainer creation fails with 'Cannot find KieModule'

Solution Verified - Updated -

Issue

We issue the following curl command to create a xxx container:

curl -i -u "USER:PWD" -X PUT -H "Content-Type: application/xml" -d @kiecontainer.txt localhost:8074/services/rest/server/containers/xxx

My kiecontainer.txt contains:

<kie-container container-id="xxx">
  <release-id>
    <group-id>com.myspace</group-id>
    <artifact-id>test</artifact-id>
    <version>1.0</version>                                                                                                                                                               
  </release-id>                                                                                                                                                                         
</kie-container>

This fails:

02:03:44,701 ERROR [org.kie.server.services.impl.KieServerImpl] (default task-1) Error creating container 'xxx' for module 'com.myspace:test:1.0': java.lang.RuntimeException: Cannot find KieModule: com.myspace:test:1.0
        at deployment.ROOT.war//org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:186)
        at deployment.ROOT.war//org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:176)
        at deployment.ROOT.war//org.kie.server.services.impl.KieServerImpl.createContainer(KieServerImpl.java:275)
        at deployment.ROOT.war//org.kie.server.remote.rest.common.resource.KieServerRestImpl.createContainer(KieServerRestImpl.java:157)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.jboss.resteasy.resteasy-jaxrs@3.6.1.SP3-redhat-00001//org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)

Environment

  • Red Hat Decision Manager (RHDM)
    • 7.4
  • Red Hat Process Automation Manager (RHPAM)
    • 7.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In