Hi,
I have a EJB jar that fires some drools rules. The jar has kmodule.xml inside the META-INF folder. This jar is packed inside an EAR that that is deployed to JBOSS EAP 6.3.
The rules run fine during unit test, but once deployed to JBOSS I get the follwoing error:
12:25:56,281 ERROR [stderr] (default-threads - 16) java.lang.RuntimeException: Cannot find a default KieSession
12:25:56,282 ERROR [stderr] (default-threads - 16) at org.drools.compiler.kie.builder.impl.KieContainerImpl.findKieSessionModel(KieContainerImpl.java:500)
12:25:56,283 ERROR [stderr] (default-threads - 16) at org.drools.compiler.kie.builder.impl.KieContainerImpl.newKieSession(KieContainerImpl.java:493)
12:25:56,284 ERROR [stderr] (default-threads - 16) at org.drools.compiler.kie.builder.impl.KieContainerImpl.newKieSession(KieContainerImpl.java:476)
Is there some other place we need to put the kmodule.xml for EARs?
Tried with Drools 6.2 final and 6.3.0.Beta1
Contents of kmodule.xml
<kmodule xmlns="
http://jboss.org/kie/6.0.0/kmodule"></kmodule>
Thanks.