The lightweight component (org.apache.servicemix.components.drools.DroolsComponent) use drools 2. You have to add the needed libraries in the classpath to make it work.
The servicemix-drools is a new version that uses drools 3 nad is packaged as a stanard JBI component, so you need to install it (it has a dependency on the servicemix-shared shared library). Then you can deploy SU to it. On 2/9/07, Daniel Gradecak <[EMAIL PROTECTED]> wrote:
Ok, for org/apache/servicemix/common/DefaultComponent I finally found it in servicemix-shared-3.1-incubating-SNAPSHOT-installer.zip in the components lib ... i just could not find that yesterday. Anyway even with that org/drools/io/RuleBaseLoader is not found? So my question is why this code can not be run and how to fix that? I read that org/drools/io/RuleBaseLoader is from a previous release of Drools. sO i just wonder how the class org.apache.servicemix.components.drools.DroolsComponent could compile with an import org.drools.io.RuleBaseLoader; that does not exists? So should we still use drools 2 or is there a way to use drools 3 ? Regards, Daniel Daniel Gradecak wrote: > hello, > > i am not able to configure the drools component in servicemix 3.1. > Anyway i was not follwing the mailling list and i could not find any > answer on the ne right now. > So i see there is 2 classes > org.apache.servicemix.*components*.drools.DroolsComponent and > org.apache.servicemix.drools.DroolsComponent > what is the difference? which one should i use to configure the routing? > > So, in both cases there is a classpath problem. > - When using org.apache.servicemix.components.drools.DroolsComponent > Caused by: java.lang.NoClassDefFoundError: org/drools/io/RuleBaseLoader > > -org.apache.servicemix.drools.DroolsComponent > Caused by: java.lang.NoClassDefFoundError: > org/apache/servicemix/common/DefaultComponent > > Could someone telle me what is wrong? I could not find both classes in > servicemix 3.1 nor in 3.0....??? > > Which one is the one that should be used? And what is the > configuration for the drools component? > > This is how i am doing ... > > <sm:activationSpec componentName="router" > service="drools:router"> > <sm:component> > <bean > class="org.apache.servicemix.drools.component.DroolsComponent"> > <property name="ruleBaseResource" > value="/WEB-INF/rules/router.drl" /> > </bean> > </sm:component> > </sm:activationSpec> > > Regards, > Daniel
-- Cheers, Guillaume Nodet ------------------------ Architect, LogicBlaze (http://www.logicblaze.com/) Blog: http://gnodet.blogspot.com/
