JBossRules JSP/Servlet (Part2)
by spilirit master
Hi,
an other question , when i'm trying to execute the same code in the sample test java file provided by the wizard, I get some other errors :
java.lang.NoClassDefFoundError: org/drools/WorkingMemory
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0 (Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1104)
at org.apache.catalina.core.StandardWrapper.allocate( StandardWrapper.java:806)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process (Http11Protocol.java:581)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
it works if i'm using a simple class, but when i try to use my servlet, it falls;
and finally, is it possible to contribute withe a tutorial showing how to set up drools on eclipse and running a DroolsTest sample file,(arabic, english and frensh version) that's all i can propose for the moment.
thank you.
---------------------------------
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
17 years, 5 months
JBossRules and JAVA Servlet / JSP (part2)
by Mohammed JBossRules
Hi,
an other question , when i'm trying to execute the same code in the sample
test java file provided by the wizard, I get some other errors :
java.lang.NoClassDefFoundError: org/drools/WorkingMemory
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0 (Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.apache.catalina.core.StandardWrapper.loadServlet(
StandardWrapper.java:1104)
at org.apache.catalina.core.StandardWrapper.allocate(
StandardWrapper.java:806)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:129)
at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke (
StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:261)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process (
Http11Protocol.java:581)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java
:447)
at java.lang.Thread.run(Unknown Source)
it works if i'm using a simple class, but when i try to use my servlet, it
falls;
and finally, is it possible to contribute withe a tutorial showing how to
set up drools on eclipse and running a DroolsTest sample file,(arabic,
english and frensh version) that's all i can propose for the moment.
thank you.
17 years, 5 months
JBossRules and JAVA Servlet / JSP
by Mohammed JBossRules
Hello,
I'm a new user for JBossRules, and I'm feeling like turning around since
a while, so i thought that sole body could help...
I'm using JBossRules(V4.0.0.12865MR3) on eclipse (Version: 3.3.0 Build
id: I20070621-1340) on MS-Windows XP and Java(TM) SE Runtime
Environment (build 1.6.0_01-b06)
now the problem is how to use my rules (simple rules in a DRL file) in a
dynamic project based on JSP/Servlets...
i've imported the compiler, the core, jsr94, decisiontable, and also the
core 3.2.3 jars to my build path , but when i try to execute the same
code i'm having errors like:
The import org.drools cannot be resolved
but i have imported the core!!
what's wrong? help please
regards
17 years, 5 months
Using Rule Flow
by Natraj Gudla
Hi,
Has any one used Rule FLow with 4.0.0. I am looking for some help on how to
use rule flow, where to mention the drl file name. How to use it in the java
invoker classes.
I have tried something, created a TestRuleFlow.rf, then added a rule group,
gave it a group name as drl file name. When i use the PackageBuilder to add
the rule flow, it throws the following exception
*
com.thoughtworks.xstream.alias.CannotResolveClassException*:
org.drools.ruleflow.core.impl.RuleFlowProcess :
org.drools.ruleflow.core.impl.RuleFlowProcess
at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(*
DefaultMapper.java:35*)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(*
MapperWrapper.java:18*)
at com.thoughtworks.xstream.mapper.XmlFriendlyMapper.realClass(*
XmlFriendlyMapper.java:44*)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(*
MapperWrapper.java:18*)
at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(*
ClassAliasingMapper.java:49*)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(*
MapperWrapper.java:18*)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(*
MapperWrapper.java:18*)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(*
MapperWrapper.java:18*)
at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(*
DynamicProxyMapper.java:46*)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(*
MapperWrapper.java:18*)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(*
MapperWrapper.java:18*)
at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(*ArrayMapper.java
:70*)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(*
MapperWrapper.java:18*)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(*
MapperWrapper.java:18*)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(*
MapperWrapper.java:18*)
at com.thoughtworks.xstream.mapper.CachingMapper.realClass(*
CachingMapper.java:27*)
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(*
TreeUnmarshaller.java:95*)
at com.thoughtworks.xstream.core.ReferenceByIdMarshallingStrategy.unmarshal(
*ReferenceByIdMarshallingStrategy.java:12*)
at com.thoughtworks.xstream.XStream.unmarshal(*XStream.java:552*)
at com.thoughtworks.xstream.XStream.unmarshal(*XStream.java:540*)
at com.thoughtworks.xstream.XStream.fromXML(*XStream.java:490*)
at org.drools.compiler.ProcessBuilder.addProcessFromFile(*
ProcessBuilder.java:76*)
at org.drools.compiler.PackageBuilder.addRuleFlow(*PackageBuilder.java:199*)
at com.drools.sample.ParseDRL.readRuleFromDrl(*ParseDRL.java:72*)
at com.drools.sample.ParseDRL.main(*ParseDRL.java:23*)
*
com.thoughtworks.xstream.alias.CannotResolveClassException*:
org.drools.ruleflow.core.impl.RuleFlowProcess :
org.drools.ruleflow.core.impl.RuleFlowProcess
at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(*
DefaultMapper.java:35*)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(*
MapperWrapper.java:18*)
at com.thoughtworks.xstream.mapper.XmlFriendlyMapper.realClass(*
XmlFriendlyMapper.java:44*)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(*
MapperWrapper.java:18*)
at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(*
ClassAliasingMapper.java:49*)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(*
MapperWrapper.java:18*)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(*
MapperWrapper.java:18*)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(*
MapperWrapper.java:18*)
at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(*
DynamicProxyMapper.java:46*)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(*
MapperWrapper.java:18*)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(*
MapperWrapper.java:18*)
at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(*ArrayMapper.java
:70*)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(*
MapperWrapper.java:18*)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(*
MapperWrapper.java:18*)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(*
MapperWrapper.java:18*)
at com.thoughtworks.xstream.mapper.CachingMapper.realClass(*
CachingMapper.java:27*)
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(*
TreeUnmarshaller.java:95*)
at com.thoughtworks.xstream.core.ReferenceByIdMarshallingStrategy.unmarshal(
*ReferenceByIdMarshallingStrategy.java:12*)
at com.thoughtworks.xstream.XStream.unmarshal(*XStream.java:552*)
at com.thoughtworks.xstream.XStream.unmarshal(*XStream.java:540*)
at com.thoughtworks.xstream.XStream.fromXML(*XStream.java:490*)
at org.drools.compiler.ProcessBuilder.addProcessFromFile(*
ProcessBuilder.java:76*)
at org.drools.compiler.PackageBuilder.addRuleFlow(*PackageBuilder.java:199*)
at com.drools.sample.ParseDRL.readRuleFromDrl(*ParseDRL.java:72*)
at com.drools.sample.ParseDRL.main(*ParseDRL.java:23*)
Exception in thread "main"
17 years, 5 months
FunctionFixer breaks valid consequence
by Lukas Füllemann
Hi everybody
We use Drools 3.0.6 as part of a rule framework and directly generate description objects (PackageDescr, RuleDescr, etc.). Today a rule showed up which cannot be compiled, because the FunctionFixer utitly generates garbage of our consequence.
The consequence is "varlist.setDouble("a", (7 / 2) + 1);", varlist is just a fact with a function taking a string and a double. The fix method in FunctionFixer.java chops this consequence into varlist.setDouble("a",.",(7 / 2) + 1); If we slightly modify the consequence, e.g. to "varlist.setDouble("a", 7 / 2);", everything works perfect.
We actually do not want any 'fixes', as we do not use any DSL or other high-level stuff. Is there a way to bypass theses fixes without modifying the source code?
Thanks in advance,
Lukas
17 years, 5 months
Loading more than 10000 rules
by Héron Nicolas
Hello,
I am using drools 3.0.6 for a retail customer.
We have the current problem that we can not add more than 10000 rules.
After this, the system increases its memory and runs out of memory.
Is there a limit ?
Thanks
Nicolas Heron
17 years, 5 months
Modifying the fact more than once within a rule
by Natraj Gudla
Hello All,
Has anyone faced a situation where a fact gets modified more than once
within a given DRL. The modification is required so that the other rules
properly fire based on the consequence of the earlier.
I am able to get through the modifyRetract() and modifyInsert() once in a
rule consequence, but the second time i do it, it goes into an infinite loop
and results in out of memory.
Why is it that i cant modify the object more than once. In such a case, how
to deal with business scenarios which need this.
Also, is it possible to handle the execution of another DRL within one DRL.
Thanks
Natraj Gudla
17 years, 5 months
frequency of digest posts
by Matt Geis
Why is it that the "digest" comes almost as frequently as individual emails? I've received eight separate digest emails in the last five hours, and I can only assume I'll get another ten or so by the end of the day? I subscribe because I like to keep up on what's going on with JBoss Rules, but there is a reason I chose "digest" as my delivery option, after all.
Can an admin throttle the flow a little bit? It seems like someone has defined a threshhold whereby if 2 KB of text accumulate, it's time to drain the queue and send out a digest.
Thanks,
Matt
____________________________________________________________________________________
Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469
17 years, 5 months