error compilation
by fakhfakh ismail
hello,
when I execute my code an error is affiched
[java] Exception in thread "main" java.lang.NoClassDefFoundError: org/antlr/stringtemplate/StringTemplateGroup
[java] at org.drools.semantics.java.RuleBuilder.<clinit>(Unknown Source)
[java] at org.drools.compiler.PackageBuilder.addRule(Unknown Source)
[java] at org.drools.compiler.PackageBuilder.addPackage(Unknown Source)
[java] at org.drools.compiler.PackageBuilder.addPackageFromDrl(Unknown Source)
[java] at org.drools.jsr94.rules.admin.LocalRuleExecutionSetProviderImpl.createRuleExecutionSet(Unknown Source)
[java] at org.drools.jsr94.rules.admin.LocalRuleExecutionSetProviderImpl.createRuleExecutionSet(Unknown Source)
thank you for your help
Best regards
Ismail
---------------------------------
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses.
17 years, 8 months
Unknown Source
by fakhfakh ismail
Hello,
First sorry for my bad english,
when I execute my rule project an exception
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/compiler/env/INameEnvironment
at org.drools.compiler.PackageBuilder.loadCompiler(Unknown Source)
at org.drools.compiler.PackageBuilder.<init>(Unknown Source)
at org.drools.compiler.PackageBuilder.<init>(Unknown Source)
at org.drools.jsr94.rules.admin.LocalRuleExecutionSetProviderImpl.createRuleExecutionSet(Unknown Source)
at org.drools.jsr94.rules.admin.LocalRuleExecutionSetProviderImpl.createRuleExecutionSet(Unknown Source)
at hero.ra.rules.Rule.fireRules(Rule.java:41)
at hero.ra.rules.Rule.fireRules(Rule.java:70)
at hero.ra.rules.test.main(test.java:129)
the class of java bean is in package hero.rules.data(in folder src)
the class of fire rules in hero.ra.rules (in folder src)
and the file ".drl" in folder "src"
when I make the class javabean and the class of firerule there's not problem
Please I need your help
Best regards
Ismail
---------------------------------
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses.
17 years, 8 months
Native code
by Matthew Shaw
Hi,
Does drools 3.X use any native code / libraries?
Matt Shaw
Snr Applications Developer
Service Performance & Management Unit
Phone: 3247 8666. ext. 94666
This correspondence is for the named persons only.
It may contain confidential or privileged information or both.
No confidentiality or privilege is waived or lost by any mis transmission.
If you receive this correspondence in error please delete it from your system immediately and notify the sender.
You must not disclose, copy or relay on any part of this correspondence, if you are not the intended recipient.
Any opinions expressed in this message are those of the individual sender except where the sender expressly,
and with the authority, states them to be the opinions of the Department of Emergency Services, Queensland.
17 years, 8 months
Unknown Source
by fakhfakh ismail
Hello,
First sorry for my bad english,
when I execute my rule project an exception
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/compiler/env/INameEnvironment
at org.drools.compiler.PackageBuilder.loadCompiler(Unknown Source)
at org.drools.compiler.PackageBuilder.<init>(Unknown Source)
at org.drools.compiler.PackageBuilder.<init>(Unknown Source)
at org.drools.jsr94.rules.admin.LocalRuleExecutionSetProviderImpl.createRuleExecutionSet(Unknown Source)
at org.drools.jsr94.rules.admin.LocalRuleExecutionSetProviderImpl.createRuleExecutionSet(Unknown Source)
at hero.ra.rules.Rule.fireRules(Rule.java:41)
at hero.ra.rules.Rule.fireRules(Rule.java:70)
at hero.ra.rules.test.main(test.java:129)
the class of java bean is in package hero.rules.data(in folder src)
the class of fire rules in hero.ra.rules (in folder src)
and the file ".drl" in folder "src"
when I make the class javabean and the class of firerule there's not problem
Please I need your help
Best regards
Ismail
---------------------------------
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses.
17 years, 8 months
RE: [rules-users] FW: Newbie: using a spreadsheet
by Hehl, Thomas
Thank you! That was it!
_____
From: rules-users-bounces(a)lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Steven Williams
Sent: Tuesday, May 01, 2007 7:57 AM
To: Rules Users List
Subject: Re: [rules-users] FW: Newbie: using a spreadsheet
In your Action column you should have:
ACTION
<blank>
singleStatus.setAnswer("$param");
cheers
Steve
On 5/1/07, Hehl, Thomas <Thomas.Hehl(a)acs-inc.com
<mailto:Thomas.Hehl@acs-inc.com> > wrote:
OK, here's my rules table:
RuleTable Court
CONDITION
CONDITION
ACTION
singleStatus: SingleParticipantStatus
singleStatus: SingleParticipantStatus
singleStatus: SingleParticipantStatus
statusType
value
singleStatus.setAnswer("$param");
And this generates a rule that looks like this, for example:
then singleStatus:
SingleParticipantStatus.singleStatus.setAnswer("statusOnly");;
This generates an error b/c it doesn't know how to resolve
SingleParticipantStatus.singleStatus.setAnswer, which is where the error
below is coming from.
So I changed the rule table to simply say:
setAnswer("$param");
Which generates:
then
singleStatus: SingleParticipantStatus.setAnswer("statusOnly");;
Which causes the non-static method error since setAnswer is an instance
method.
Can anyone tell me what I'm doing wrong?
Thanks.
_____
From: Hehl, Thomas
Sent: Monday, April 30, 2007 8:42 AM
To: 'rules-users(a)lists.jboss.org <mailto:rules-users@lists.jboss.org> '
Subject: Newbie: using a spreadsheet
I've been following the ExamplePricePolicy example and am attempting to
build my own rules using a spreadsheet.
In my spreadsheet rules, I have the following:
ACTION
singleStatus: SingleParticipantStatus
singleStatus.setAnswer("$param");
This throws:
org.drools.rule.InvalidRulePackage: Rule Compilation error
SingleParticipantStatus.singleStatus cannot be resolved
Rule Compilation error SingleParticipantStatus.singleStatus cannot be
resolved
Rule Compilation error SingleParticipantStatus.singleStatus cannot be
resolved
Rule Compilation error SingleParticipantStatus.singleStatus cannot be
resolved
Rule Compilation error SingleParticipantStatus.singleStatus cannot be
resolved
When I googled on this error, most of the occurrences appeared to be related
to an import issue, but if I change the third line to:
setAnswer("$param");
It blows up because it knows that setAnswer is not a static method, which
tends to tell me that it found my class.
I think I've parroted the example exactly and so I'm confused as to where to
go with this issue.
Thanks!
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org <mailto:rules-users@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/rules-users
<https://lists.jboss.org/mailman/listinfo/rules-users>
--
Steven Williams
Supervising Consultant
Object Consulting
Office: 8615 4500 Mob: 0439 898 668 Fax: 8615 4501
stevenw(a)objectconsulting.com.au <mailto:stevenw@objectconsulting.com.au>
www.objectconsulting.com.au <http://www.objectconsulting.com.au>
consulting | development | training | support
our experience makes the difference
17 years, 8 months
FW: Newbie: using a spreadsheet
by Hehl, Thomas
OK, here's my rules table:
RuleTable Court
CONDITION
CONDITION
ACTION
singleStatus: SingleParticipantStatus
singleStatus: SingleParticipantStatus
singleStatus: SingleParticipantStatus
statusType
value
singleStatus.setAnswer("$param");
And this generates a rule that looks like this, for example:
then singleStatus:
SingleParticipantStatus.singleStatus.setAnswer("statusOnly");;
This generates an error b/c it doesn't know how to resolve
SingleParticipantStatus.singleStatus.setAnswer, which is where the error
below is coming from.
So I changed the rule table to simply say:
setAnswer("$param");
Which generates:
then
singleStatus: SingleParticipantStatus.setAnswer("statusOnly");;
Which causes the non-static method error since setAnswer is an instance
method.
Can anyone tell me what I'm doing wrong?
Thanks.
_____
From: Hehl, Thomas
Sent: Monday, April 30, 2007 8:42 AM
To: 'rules-users(a)lists.jboss.org'
Subject: Newbie: using a spreadsheet
I've been following the ExamplePricePolicy example and am attempting to
build my own rules using a spreadsheet.
In my spreadsheet rules, I have the following:
ACTION
singleStatus: SingleParticipantStatus
singleStatus.setAnswer("$param");
This throws:
org.drools.rule.InvalidRulePackage: Rule Compilation error
SingleParticipantStatus.singleStatus cannot be resolved
Rule Compilation error SingleParticipantStatus.singleStatus cannot be
resolved
Rule Compilation error SingleParticipantStatus.singleStatus cannot be
resolved
Rule Compilation error SingleParticipantStatus.singleStatus cannot be
resolved
Rule Compilation error SingleParticipantStatus.singleStatus cannot be
resolved
When I googled on this error, most of the occurrences appeared to be related
to an import issue, but if I change the third line to:
setAnswer("$param");
It blows up because it knows that setAnswer is not a static method, which
tends to tell me that it found my class.
I think I've parroted the example exactly and so I'm confused as to where to
go with this issue.
Thanks!
17 years, 8 months