<div dir="ltr">Hi,<div><br></div><div>I have created a camel drools project using kie-aries-blueprint (code refactored but not yet committed). </div><div><br></div><div>When ksession is created, I get this error message :</div>
<div><br></div><div><div>Caused by: org.osgi.service.blueprint.container.ComponentDefinitionException: No KSession found in kmodule.xml with id &#39;ksession1&#39;.</div><div><span class="" style="white-space:pre">        </span>at org.kie.aries.blueprint.factorybeans.KieObjectsFactoryBean.createKieSessionRef(KieObjectsFactoryBean.java:70)</div>
<div><span class="" style="white-space:pre">        </span>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_51]</div><div><span class="" style="white-space:pre">        </span>at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_51]</div>
<div><span class="" style="white-space:pre">        </span>at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_51]</div><div><span class="" style="white-space:pre">        </span>at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_51]</div>
<div><span class="" style="white-space:pre">        </span>at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:297)[7:org.apache.aries.blueprint.core:1.0.1]</div><div><span class="" style="white-space:pre">        </span>at org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:958)[7:org.apache.aries.blueprint.core:1.0.1]</div>
<div><span class="" style="white-space:pre">        </span>at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:313)[7:org.apache.aries.blueprint.core:1.0.1]</div><div><br></div><div style>The kmodule.xml file created under META-INF directory contains a ksession1</div>
<div style><br></div><div style><div>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</div><div>&lt;kmodule</div><div>    xmlns=&quot;<a href="http://jboss.org/kie/6.0.0/kmodule">http://jboss.org/kie/6.0.0/kmodule</a>&quot;&gt;</div>
<div>  &lt;kbase name=&quot;drl_sample&quot;&gt;</div><div>    &lt;ksession name=&quot;ksession1&quot; type=&quot;stateless&quot;/&gt;</div><div>  &lt;/kbase&gt;</div><div>&lt;/kmodule&gt;</div><div><br></div><div style>Here is what has been created under camel blueprint file </div>
<div style><br></div><div style><div>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</div><div>&lt;blueprint xmlns=&quot;<a href="http://www.osgi.org/xmlns/blueprint/v1.0.0">http://www.osgi.org/xmlns/blueprint/v1.0.0</a>&quot;</div>
<div>           xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>&quot;</div><div>           xmlns:kie=&quot;<a href="http://drools.org/schema/kie-aries-blueprint/1.0.0">http://drools.org/schema/kie-aries-blueprint/1.0.0</a>&quot;</div>
<div>           xsi:schemaLocation=&quot;</div><div>           <a href="http://www.osgi.org/xmlns/blueprint/v1.0.0">http://www.osgi.org/xmlns/blueprint/v1.0.0</a> <a href="http://www.osgi.org/xmlns/blueprint/v1.0.0">http://www.osgi.org/xmlns/blueprint/v1.0.0</a></div>
<div>           <a href="http://drools.org/schema/kie-aries-blueprint/1.0.0">http://drools.org/schema/kie-aries-blueprint/1.0.0</a> <a href="http://drools.org/schema/kie-aries-blueprint/1.0.0">http://drools.org/schema/kie-aries-blueprint/1.0.0</a>&quot;&gt;</div>
<div><br></div><div>  &lt;!-- Beans used by camel in the example --&gt;</div><div>  &lt;bean id=&quot;droolsHelper&quot; class=&quot;org.drools.camel.example.DroolsCommandHelper&quot;/&gt;</div><div>  &lt;bean id=&quot;personHelper&quot; class=&quot;org.drools.camel.example.PersonHelper&quot;/&gt;</div>
<div><br></div><div>  &lt;bean id=&quot;aList&quot; class=&quot;java.util.ArrayList&quot;/&gt;</div><div><br></div><div>  &lt;kie:ksession-ref id=&quot;ksession1&quot;&gt;</div><div>    &lt;kie:batch&gt;</div><div>      &lt;kie:set-global identifier=&quot;list&quot; ref=&quot;aList&quot;/&gt;</div>
<div>    &lt;/kie:batch&gt;</div><div>  &lt;/kie:ksession-ref&gt;</div></div><div><br></div></div><div style>Any idea is welcome ?</div><div style><br></div><div style>Regards,</div><div style><br></div>-- <br><div dir="ltr">
<div>Charles Moulliard</div><div>Apache Committer / Architect @RedHat</div><div>Twitter : @cmoulliard | Blog : <a href="http://cmoulliard.blogspot.com" target="_blank">http://cmoulliard.blogspot.com</a></div><div><br></div>
</div>
</div></div>