Hello,
same problem here. Same as others I belive it has to do with dynamic rule
changes. In Spring I have:
<drools:resource-change-scanner id="scanInterval" interval="600"
enabled="true"/>
<drools:kbase id="kbase">
<drools:configuration>
<drools:mbeans enabled="true"/>
</drools:configuration>
</drools:kbase>
<drools:kagent id="kagent" kbase="kbase"
new-instance="false">
<drools:resources>
...
</drools:resources>
</drools:kagent>
If I move the resources directly under <drools:kbase> than any error in
rules is detected and the kbase is not created (Spring configuration fails).
With the above setting however the kbase is build without any error.
The resources cointains HTTP links to Excel files with decision tables and
those are editable by business users. So it might be that there is error in
the rules introduced by them.
Also notice that I'm using new-instance="false". This is because I
can't
(easily) request kbase (or session from it) from SpringApplication context
using prototype scope.
What happens if update of the ruleset introduces error in the rules? Is
there a way to configure? Or to get notified when the ruleset changes?
Aleš
--
View this message in context:
http://drools.46999.n3.nabble.com/java-lang-ClassCastException-org-drools...
Sent from the Drools: User forum mailing list archive at
Nabble.com.