When creating a kjar with RHDM 7.5.0 or a community version >7.25.0, deployment of this kjar fails in RDHM 7.4.1:
10:31:13,375 ERROR [org.kie.server.services.impl.KieServerImpl] (default task-3) Error creating container 'test' for module 'com.redhat.support:kjar-test:1.0': java.lang.RuntimeException: Cannot find KieModule: com.redhat.support:kjar-test:1.0 at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:186) at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:176)
The root cause of the issue is that the kmodule.xml generated with a newer versions supports the additional sequential attribute for the kbase defintion due to DROOLS-4335:
<kbase name="defaultKieBase" default="true" ... sequential="false">
While it is arguable if we need to provide forward compatibility, we should at least provide a clear error message about the underlying marshalling issue, allowing users to quickly identify the issue.
Alternatively - and if possible - the parser could just ignore the additional attribute.
- is related to
-
DROOLS-4513 s2i build fails at KieServerContainerVerifier without appropriate logging when kmodule.xml schema validation fails
- Closed