[rules-users] RuntimeDroolsException: Unable to load dialect

2007-10-15 Thread Chong Minsk Goh
Hi,

I am trying to run Drools on Netbeans. I have added the jars from Drools
4.0.2.

However, I encountered an error

org.doxa.rules.RulesManager - org.drools.RuntimeDroolsException: Unable to
load dialect '
org.drools.rule.builder.dialect.mvel.MVELDialectConfiguration:mvel'

I did not use any MVEL dialects in my rules definition. Here is my rule:
*

rule* Out of Range

*when
*

m : Message( message == checkRange , status == 1 )

Range(myMin : myMin, myMax : myMax, myValue : myValue)

Range(myValue  myMin || myValue  myMax)

*then*

m.setMessage();

m.setStatus(0);

*end
*

Has anyone attempted using Netbeans with Drools and faced this problem?

Best regards
Eric
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] BRMS

2007-10-15 Thread Markus Helbig
Hi,

i tryed to deploy the BRMS on a WebSphere Server, but i get
incompatibility errors. It seems BRMS can not be used with JRE 1.4.x,
right? Why? JRE 1.4.x is still very common and often used in
enterprises ...

Cheers

Markus

Stacktrace is:

Could not be defined due to: (org/jboss/seam/servlet/SeamListener) bad
major version at offset=6
This is often caused by having a class defined at multiple
locations within the classloader hierarchy.  Other potential causes
include compiling against an older or newer version of the class
that has an incompatible method signature.
Dumping the current context classloader hierarchy:
== indicates defining classloader
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] jdt core API issue Drools 4.0 and apache-tomcat-5.5.17

2007-10-15 Thread marimuthu.balasubramanian

Hi All
 
Drools 4.0 is using ecj-latest.jar file for jdt core API.
apache-tomcat-5.5.17 is using jasper-compiler-jdt.jar file for jdt core
API. The CompilationResult  class is one of the class in jdt core API.
But the jar files are having different versions of  CompilationResult
class. So we are unable to incorporate Drools 4.0 application with
tomcat. please let me know if you have any solution.
 
regards
Marimuthu
 
 
 



The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.
 
www.wipro.com___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] BRMS

2007-10-15 Thread Mark Proctor

Markus Helbig wrote:

Hi,

i tryed to deploy the BRMS on a WebSphere Server, but i get
incompatibility errors. It seems BRMS can not be used with JRE 1.4.x,
right? Why? JRE 1.4.x is still very common and often used in
enterprises ...
  

yup the BRMS is JDK1.5 - welcome to the future :)

Cheers

Markus

Stacktrace is:

Could not be defined due to: (org/jboss/seam/servlet/SeamListener) bad
major version at offset=6
This is often caused by having a class defined at multiple
locations within the classloader hierarchy.  Other potential causes
include compiling against an older or newer version of the class
that has an incompatible method signature.
Dumping the current context classloader hierarchy:
== indicates defining classloader
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

  


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] RuntimeDroolsException: Unable to load dialect

2007-10-15 Thread Mark Proctor

Chong Minsk Goh wrote:

Hi,
 
I am trying to run Drools on Netbeans. I have added the jars from 
Drools 4.0.2.
 
However, I encountered an error
 
org.doxa.rules.RulesManager - org.drools.RuntimeDroolsException: 
Unable to load dialect 
'org.drools.rule.builder.dialect.mvel.MVELDialectConfiguration:mvel'
MVEL is a required jar, not an optional one, put it on your classpath 
and hopefully this should work for you.
 
I did not use any MVEL dialects in my rules definition. Here is my rule:

*

rule

* Out of Range *when* m : Message( message == checkRange , status 
== 1 )


Range(myMin : myMin, myMax : myMax, myValue : myValue)

Range(myValue  myMin || myValue  myMax)

*then* m.setMessage();

m.setStatus(0);

*end*
 
Has anyone attempted using Netbeans with Drools and faced this problem?
 
Best regards

Eric
 



___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
  


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] activationCancelled() not being executed?

2007-10-15 Thread Fermion

I did some major code-cleaning in the meantime and I feel a bit more
comfortable now...

Unfortunately this still didn't help me with my two problems:
a) I still have the problem that my activations don't get canceled.
b) I don't think that I'll be able to distill the code in order to get a
self-contained project out of it.

So instead I had a closer look at the Manners example and I found only two
obvious differences from my code:

1. Manners uses a StatefulSession object, whereas I used a WorkingMemory
instance. I changed my code to use a StatefulSession as well, but the
strange behavior didn't disappear.

2. Manners uses the standard ClassLoader while I'm using an URLClassLoader
in order to access my rule files (I plan to deploy my application as a
single executable .jar file (created with Fat Jar eclipse plugin), but I
want to have my rule files in a separate folder). 
Changing this didn't help either.

So this basically means, that there is another difference that I've missed
so far.


What I HAVE seen is, that the fact IDs of my rules change (I think this is a
good thing):
If I insert a fact with a temperature value of (e.g.) -15 °C, a
temperature-out-of-range rule gets activates (not fired).
In my little table an activation is added caused by the fact with the fact
ID 21:34.
Now I change the temperature of this fact back to something in range
(e.g.) 20°C. Instead of the activation being canceled and therefore
disappearing from my table, it just stays there.
Now I change the temperature back to something that is out of range: -30
°C. A NEW activation is inserted into my table with a fact ID of 21:38. At
the same time, the fact ID of the first (still persistent) activation
changes to 21:38 as well!

I hope that this means that drools realizes that the fact value of the first
value has changed. But if this is true, then drools also noticed that the
value changed before, without cancelling the activation.
To my knowledge this also proves that my implementation of the fact beans
hashCode() and equals() methods is working correctly.

There has to be an error in my reasoning.

Thanks again,

fermion
-- 
View this message in context: 
http://www.nabble.com/activationCancelled%28%29-not-being-executed--tf4348054.html#a13211834
Sent from the drools - user mailing list archive at Nabble.com.


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] BRMS

2007-10-15 Thread Markus Helbig
that's a real pitty ... it's a great thing ... but WebSphere 6.0.x is
using JRE 1.4 ... damned

2007/10/15, Mark Proctor [EMAIL PROTECTED]:
 Markus Helbig wrote:
  Hi,
 
  i tryed to deploy the BRMS on a WebSphere Server, but i get
  incompatibility errors. It seems BRMS can not be used with JRE 1.4.x,
  right? Why? JRE 1.4.x is still very common and often used in
  enterprises ...
 
 yup the BRMS is JDK1.5 - welcome to the future :)
  Cheers
 
  Markus
 
  Stacktrace is:
 
  Could not be defined due to: (org/jboss/seam/servlet/SeamListener) bad
  major version at offset=6
  This is often caused by having a class defined at multiple
  locations within the classloader hierarchy.  Other potential causes
  include compiling against an older or newer version of the class
  that has an incompatible method signature.
  Dumping the current context classloader hierarchy:
  == indicates defining classloader
  ___
  rules-users mailing list
  rules-users@lists.jboss.org
  https://lists.jboss.org/mailman/listinfo/rules-users
 
 

 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] activationCancelled() not being executed?

2007-10-15 Thread Fermion

Hi again!

Finally I realized that it would be best to do what I was asked for: supply
some self-contained test code.
Although it was a rather painful process, it was worth it, as the strange
behavior is still present.

I'm far from saying that this is a bug. On the contrary, I'm quit sure it's
just a very stupid thing in my code.

But at least it should be easier for someone else to have a look now...

Just download the 3 following files and copy them into the same directory.

As I was to lazy to include something more clever, I hardcoded this path, so
that you'll need to modify the line

String absoluteFilePath = C:/Dokumente und
Einstellungen/Henss/workspace/DeploymentTest/;

to point to your folder.

If you use Eclipse and the Drools plugin, you should also be able to browse
this directory for the created log files (of course after running the small
app at least once) using the Audit View.

I hope this helps to narrow it down a bit.

Thanks,

fermion

http://www.nabble.com/file/p13214347/Test.java Test.java 
http://www.nabble.com/file/p13214347/Rules.drl Rules.drl 
http://www.nabble.com/file/p13214347/Rules.dsl Rules.dsl 
-- 
View this message in context: 
http://www.nabble.com/activationCancelled%28%29-not-being-executed--tf4348054.html#a13214347
Sent from the drools - user mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] BRMS

2007-10-15 Thread Mark Proctor

Markus Helbig wrote:

that's a real pitty ... it's a great thing ... but WebSphere 6.0.x is
using JRE 1.4 ... damned
  
There are still people out there using drools 2.x because they are on 
JDK1.3. But their comes a time when the advantages of moving outweight 
the advantages of staying, its not an easy decision but jdk1.4 has been 
around since 2003, so I think we've supported it long enough. Our next 
major release will be jdk1.5 only, both BRMS and engine.

2007/10/15, Mark Proctor [EMAIL PROTECTED]:
  

Markus Helbig wrote:


Hi,

i tryed to deploy the BRMS on a WebSphere Server, but i get
incompatibility errors. It seems BRMS can not be used with JRE 1.4.x,
right? Why? JRE 1.4.x is still very common and often used in
enterprises ...

  

yup the BRMS is JDK1.5 - welcome to the future :)


Cheers

Markus

Stacktrace is:

Could not be defined due to: (org/jboss/seam/servlet/SeamListener) bad
major version at offset=6
This is often caused by having a class defined at multiple
locations within the classloader hierarchy.  Other potential causes
include compiling against an older or newer version of the class
that has an incompatible method signature.
Dumping the current context classloader hierarchy:
== indicates defining classloader
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


  

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

  


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Re: Ruleflow groups in decision tables

2007-10-15 Thread Arjun Dhar
Mark Proctor mproctor at codehaus.org writes:

 
 
 Knapp, Barry wrote:
 
   That generic attribute would sure be a nice place to put effective and
 expiration dates.
 Really looking forward to the patch :)


Ok, so whose writing the patch?

Can we have a spec of whats exactly needed?!
I've been wiating for agenda Groups in Decision tables for a long time.

I've created my own ways of forcing sequence in decision tables (using extended 
attributes in the condition itself); but theres room for elegance by using 
AGENDA Groups.

All other attribs can be coded in conditions also; so its importat to draw a 
line and say whatever falls on this side of the line is a legitimate attribute 
or else the user may use a condition as a substitute.

Personally I care about AGENDA Groups the max; lack of it retards decision 
tables considerably.

Thanks,
Arjun





___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] result of the Drools Puzzle #2 is out, congratulations to Scott Reed and thanks to Dr. Starke

2007-10-15 Thread Scott Reed

Ellen,
  I am pleased to have won the last round. I will be happy to propose a new puzzle but will not 
have time to do the evaluations. If that's a problem, then perhaps the award should go to the next 
in line.

   Scott

Ellen Zhao's message received 10/8/2007 6:48 PM:

Hi all,

thanks to Dr. Starke's evaluation, the result of the Drools Puzzle #2
is out. Congratulations to the winner Scott Reed, it's your turn to
post the puzzle for round 3. We will publish the evaluation text very
soon.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Sequential Execution Flow

2007-10-15 Thread Mark Proctor

Arjun Dhar wrote:

Hi,
 something I must have missed is Sequential Execution Flow. Is this simply 
putting a salience in order from top to down for rules or someting else


 how do I use this Sequential Execution Flow (If it is not what I think it 
is), how is it faster and consume lesser memory?
  
The sequential mode and ts impl is detailed in the manual. This is 
different from the sequential setting on decision tables, which just 
uses an increasing salience number, nothing else.



Thanks


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

  


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] result of the Drools Puzzle #2 is out, congratulations to Scott Reed and thanks to Dr. Starke

2007-10-15 Thread Ellen Zhao
no problem, from Nov. on I will have time to do the evaluation. So
please post your puzzle for next roundand I'm sorry for the delay
of the uploading all solutions for last round, currently I'm too busy
documenting 13,000 lines of code but will have time for the evaluation
in November. Scott you can email your address to Mark and he will send
you the T-shirt.


Regards,
Ellen

On 10/15/07, Scott Reed [EMAIL PROTECTED] wrote:
 Ellen,
I am pleased to have won the last round. I will be happy to propose a new 
 puzzle but will not
 have time to do the evaluations. If that's a problem, then perhaps the award 
 should go to the next
 in line.
 Scott

 Ellen Zhao's message received 10/8/2007 6:48 PM:
  Hi all,
 
  thanks to Dr. Starke's evaluation, the result of the Drools Puzzle #2
  is out. Congratulations to the winner Scott Reed, it's your turn to
  post the puzzle for round 3. We will publish the evaluation text very
  soon.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users



-- 
Ellen Ning Zhao
Department of Computer Science
University of Applied Science of Kaiserslautern at Zweibruecken

Tel: +49-179-7447898
homepage: http://ningning.org/
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] ClassCastException when redeploying to jboss

2007-10-15 Thread Edson Tirelli
   Jeffery,

   We fixed that bug for 4.0.2. Can you make sure you are using version
4.0.2?

http://jira.jboss.com/jira/browse/JBRULES-1239

   Thanks,
  Edson

2007/10/15, Jeffery Shutt [EMAIL PROTECTED]:

  We have a server application that runs on jboss and we are trying to use
 drools as part of it. I have one object that I insert into WorkingMemory and
 when I first start up jboss and run through my rules everything works fine.
 If I re-deploy my server to jboss (without restarting it) and try to fire my
 rules again I get a ClassCastException on {MyObject}ShadowProxy. If I stop
 and restart jboss it works fine again. It seems like something ({MyObject}
 specifically) is not being re-loaded when the application is re-deployed.
 Any help pointing me in the right direction would be nice.



 Regards,



 *Jeff Shutt*

 Software Developer

 SOS Staffing Services

 (801) 924-0429

 [EMAIL PROTECTED]



 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users




-- 
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  Office: +55 11 3529-6000
  Mobile: +55 11 9287-5646
  JBoss, a division of Red Hat @ www.jboss.com
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] result of the Drools Puzzle #2 is out, congratulations to Scott Reed and thanks to Dr. Starke

2007-10-15 Thread Ellen Zhao
ah forgot that I'd better develop a evaluation standard together with
an evaluation processto streamline the evaluation. Will do it in
November.

On 10/15/07, Ellen Zhao [EMAIL PROTECTED] wrote:
 no problem, from Nov. on I will have time to do the evaluation. So
 please post your puzzle for next roundand I'm sorry for the delay
 of the uploading all solutions for last round, currently I'm too busy
 documenting 13,000 lines of code but will have time for the evaluation
 in November. Scott you can email your address to Mark and he will send
 you the T-shirt.


 Regards,
 Ellen

 On 10/15/07, Scott Reed [EMAIL PROTECTED] wrote:
  Ellen,
 I am pleased to have won the last round. I will be happy to propose a 
  new puzzle but will not
  have time to do the evaluations. If that's a problem, then perhaps the 
  award should go to the next
  in line.
  Scott
 
  Ellen Zhao's message received 10/8/2007 6:48 PM:
   Hi all,
  
   thanks to Dr. Starke's evaluation, the result of the Drools Puzzle #2
   is out. Congratulations to the winner Scott Reed, it's your turn to
   post the puzzle for round 3. We will publish the evaluation text very
   soon.
  ___
  rules-users mailing list
  rules-users@lists.jboss.org
  https://lists.jboss.org/mailman/listinfo/rules-users
 


 --
 Ellen Ning Zhao
 Department of Computer Science
 University of Applied Science of Kaiserslautern at Zweibruecken

 Tel: +49-179-7447898
 homepage: http://ningning.org/



-- 
Ellen Ning Zhao
Department of Computer Science
University of Applied Science of Kaiserslautern at Zweibruecken

Tel: +49-179-7447898
homepage: http://ningning.org/
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users