Re: [rules-users] ClassNotFound exception running brms example (newbie)
Hi, Are you using the latest brms build ? if the anwser is not, please download the latest version from https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/it was a missing class in the drools-core library. On 9/30/07, Martin Fuzzey [EMAIL PROTECTED] wrote: Hi, I am trying to run the insurance example with the brms after replacing the client mvel jar with the one used by the brms web app as mentionned on this list I get this exeception (full stacktrace below) java.lang.ClassNotFoundException: org.drools.rule.builder.dialect.mvel.MVELDialect$ModifyInterceptor adding the drools-compiler-4.0.1.jar to the client classpath fixes this but I thought the rules were supposed to be compiled by the brms. Indeed the documentation says : The rule agent is a component which is embedded in the core runtime of the rules engine. To use this, you don't need any extra components. In fact, if you are using the BRMS, your application should only need to include the drools-core.jar in its classpath, and no other rules specific dependencies. so am I misunderstanding something or is this a bug? Thanks, Martin Fuzzey RuleAgent(insuranceconfig) INFO (Sun Sep 30 14:02:33 CEST 2007): Configuring with newInstance=true, secondsToRefresh=30 RuleAgent(insuranceconfig) INFO (Sun Sep 30 14:02:33 CEST 2007): Configuring package provider : URLScanner monitoring URLs: http://localhost:8080/drools-jbrms/org.drools.brms.JBRMS/package/org.acme.insurance/MF1 with local cache dir of /home/martin/tmp RuleAgent(insuranceconfig) EXCEPTION (Sun Sep 30 14:02:34 CEST 2007): org.drools.rule.builder.dialect.mvel.MVELDialect$ModifyInterceptor. Stack trace should follow. java.lang.ClassNotFoundException: org.drools.rule.builder.dialect.mvel.MVELDialect$ModifyInterceptor at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:604) at org.drools.common.DroolsObjectInputStream.resolveClass( DroolsObjectInputStream.java:74) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java :351) at java.util.HashMap.readObject(HashMap.java:1029) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1846) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) at
Re: [rules-users] ClassNotFound exception running brms example (newbie)
sorry, you need to get the latest core version snapshot to correct this problem, plus the new brms as well On 9/30/07, Fernando Meyer [EMAIL PROTECTED] wrote: Hi, Are you using the latest brms build ? if the anwser is not, please download the latest version from https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/ it was a missing class in the drools-core library. On 9/30/07, Martin Fuzzey [EMAIL PROTECTED] wrote: Hi, I am trying to run the insurance example with the brms after replacing the client mvel jar with the one used by the brms web app as mentionned on this list I get this exeception (full stacktrace below) java.lang.ClassNotFoundException: org.drools.rule.builder.dialect.mvel.MVELDialect$ModifyInterceptor adding the drools-compiler-4.0.1.jar to the client classpath fixes this but I thought the rules were supposed to be compiled by the brms. Indeed the documentation says : The rule agent is a component which is embedded in the core runtime of the rules engine. To use this, you don't need any extra components. In fact, if you are using the BRMS, your application should only need to include the drools-core.jar in its classpath, and no other rules specific dependencies. so am I misunderstanding something or is this a bug? Thanks, Martin Fuzzey RuleAgent(insuranceconfig) INFO (Sun Sep 30 14:02:33 CEST 2007): Configuring with newInstance=true, secondsToRefresh=30 RuleAgent(insuranceconfig) INFO (Sun Sep 30 14:02:33 CEST 2007): Configuring package provider : URLScanner monitoring URLs: http://localhost:8080/drools-jbrms/org.drools.brms.JBRMS/package/org.acme.insurance/MF1 with local cache dir of /home/martin/tmp RuleAgent(insuranceconfig) EXCEPTION (Sun Sep 30 14:02:34 CEST 2007): org.drools.rule.builder.dialect.mvel.MVELDialect$ModifyInterceptor . Stack trace should follow. java.lang.ClassNotFoundException: org.drools.rule.builder.dialect.mvel.MVELDialect$ModifyInterceptor at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass (Launcher.java :276) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java :319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:604) at org.drools.common.DroolsObjectInputStream.resolveClass( DroolsObjectInputStream.java :74) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496) at java.io.ObjectInputStream.readOrdinaryObject (ObjectInputStream.java :1732) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java :351) at java.util.HashMap.readObject (HashMap.java:1029) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke (Method.java:597) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1846) at java.io.ObjectInputStream.readOrdinaryObject (ObjectInputStream.java :1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java :1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java :1329) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869) at java.io.ObjectInputStream.readOrdinaryObject (ObjectInputStream.java :1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java :1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java :1329)
[rules-users] executing specific rules using agenda group
Hi I am using Drools 4.0. First time I want to fire some specific rules from my rule file(in .xml format) and then other rules for the second time. I have defined agenda-group attribute for the rules as follows: rule-attribute name=agenda-group value=Check-rfq/ how can I execute specific rules using agenda group or is there any other options are available. When I had gone through Drools documentation ,they mentioned Listener api can be used to execute specific rules but I did not find enough information on Listener. Please let me know how can I implement Listener api to execute specific rules. Thanks With Regards Prateek 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