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