Not able to create container using REST API if we upload kjar into server maven repository using maven command in BPMS 6.1
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:
- clone porject from business-central to IDE, and add
<distributionManagement>
<repository>
<id>guvnor-m2-repo</id>
<url>http://localhost:8080/business-central/maven2/</url>
<layout>default</layout>
</repository>
</distributionManagement>
- Use
mvn deploycommand 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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
