Not able to create container using REST API if we upload kjar into server maven repository using maven command in BPMS 6.1

Solution Unverified - Updated -

Issue

  • If we try to create container using REST API it fails if kjar is uploaded into server maven repository through maven command.
  • Steps to Reproduce:
    • clone porject from business-central to IDE, and add tag in pom.xml, like as:
<distributionManagement>
   <repository>
     <id>guvnor-m2-repo</id>
     <url>http://localhost:8080/business-central/maven2/</url>
     <layout>default</layout>
   </repository>
</distributionManagement>
  • Use mvn deploy command to push kjar into server maven repository.
  • Now try to create container using RESt API
http://127.0.0.1:8080/kie-server/services/rest/server/containers/Test  [PUT]
<kie-container container-id="Test">
   <release-id>
    <group-id>com.sample</group-id>
    <artifact-id>DemoProject</artifact-id>
        <version>1.0.01</version>
   </release-id>
</kie-container>

Container creation failed with exception:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><response type="FAILURE" msg="Failed to create container Test with module com.sample:DemoProject:1.0.01: java.lang.RuntimeException: Cannot find KieModule: com.sample:DemoProject:1.0.01"></response>

Environment

  • Red Hat JBoss BPM Suite
    • 6.1.0
  • Red Hat JBoss BRMS
    • 6.1.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content