<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 'ksession1'.</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><?xml version="1.0" encoding="UTF-8"?></div><div><kmodule</div><div> xmlns="<a href="http://jboss.org/kie/6.0.0/kmodule">http://jboss.org/kie/6.0.0/kmodule</a>"></div>
<div> <kbase name="drl_sample"></div><div> <ksession name="ksession1" type="stateless"/></div><div> </kbase></div><div></kmodule></div><div><br></div><div style>Here is what has been created under camel blueprint file </div>
<div style><br></div><div style><div><?xml version="1.0" encoding="UTF-8"?></div><div><blueprint xmlns="<a href="http://www.osgi.org/xmlns/blueprint/v1.0.0">http://www.osgi.org/xmlns/blueprint/v1.0.0</a>"</div>
<div> xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"</div><div> xmlns:kie="<a href="http://drools.org/schema/kie-aries-blueprint/1.0.0">http://drools.org/schema/kie-aries-blueprint/1.0.0</a>"</div>
<div> xsi:schemaLocation="</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>"></div>
<div><br></div><div> <!-- Beans used by camel in the example --></div><div> <bean id="droolsHelper" class="org.drools.camel.example.DroolsCommandHelper"/></div><div> <bean id="personHelper" class="org.drools.camel.example.PersonHelper"/></div>
<div><br></div><div> <bean id="aList" class="java.util.ArrayList"/></div><div><br></div><div> <kie:ksession-ref id="ksession1"></div><div> <kie:batch></div><div> <kie:set-global identifier="list" ref="aList"/></div>
<div> </kie:batch></div><div> </kie:ksession-ref></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>