Re: [rules-users] Classcast exception in Drools ant task
Yes, i have the correct mvel jar in my classpath. mvel2-2.1.0.drools16.jar is the jar which i copied from the drools-5.4.0 zip file. Thanks and Regards, Suresh Kumar Mutyala (+91) 9032485123 Message: 1 Date: Fri, 21 Sep 2012 09:47:59 -0700 (PDT) From: lhorton lhor...@abclegal.com Subject: Re: [rules-users] Classcast exception in Drools ant task To: rules-users@lists.jboss.org Message-ID: 1348246079889-4019894.p...@n3.nabble.com Content-Type: text/plain; charset=us-ascii I checked the binaries for 5.4.0.FINAL and the mvel jar is not named mvel2.jar. Are you sure you have the correct mvel jar in your classpath for 5.4.0? -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Classcast-exception-in-Drools-ant-task-tp4019864p4019894.html Sent from the Drools: User forum 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] Classcast exception in Drools ant task
Hi All, Can someone please help me solve this issue? Thanks and Regards, Suresh Kumar Mutyala From: rules-users-requ...@lists.jboss.org rules-users-requ...@lists.jboss.org To: rules-users@lists.jboss.org Sent: Thursday, 20 September 2012 4:17 AM Subject: rules-users Digest, Vol 70, Issue 65 Send rules-users mailing list submissions to rules-users@lists.jboss.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.jboss.org/mailman/listinfo/rules-users or, via email, send a message with subject or body 'help' to rules-users-requ...@lists.jboss.org You can reach the person managing the list at rules-users-ow...@lists.jboss.org When replying, please edit your Subject line so it is more specific than Re: Contents of rules-users digest... Today's Topics: 1. Planner Planning Entity difficulty comparator Vs difficulty weight factory (Ricardo) 2. Examination drools-planner example (kostis) 3. Re: Examination drools-planner example (Geoffrey De Smet) 4. Re: Planner Planning Entity difficulty comparator Vs difficulty weight factory (Geoffrey De Smet) 5. Re: Planner Planning Entity difficulty comparator Vs difficulty weight factory (ge0ffrey) 6. Re: planning difficulty problem (Geoffrey De Smet) 7. Classcast exception in Drools ant task (Mutyala Suresh kumar) -- Message: 1 Date: Wed, 19 Sep 2012 16:49:39 -0700 (PDT) From: Ricardo sprabak...@gmail.com Subject: [rules-users] Planner Planning Entity difficulty comparator Vs difficulty weight factory To: rules-users@lists.jboss.org Message-ID: 1348098579210-4019858.p...@n3.nabble.com Content-Type: text/plain; charset=us-ascii when to use Planner Planning Entity difficulty comparator and difficulty weight factory? is any guidelines? - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/Planner-Planning-Entity-difficulty-comparator-Vs-difficulty-weight-factory-tp4019858.html Sent from the Drools: User forum mailing list archive at Nabble.com. -- Message: 2 Date: Wed, 19 Sep 2012 23:06:22 -0700 (PDT) From: kostis epp...@gmail.com Subject: [rules-users] Examination drools-planner example To: rules-users@lists.jboss.org Message-ID: 1348121182201-4019859.p...@n3.nabble.com Content-Type: text/plain; charset=us-ascii Hello, Is there any guidance about the domain model of the examination example? The class InstitutionalWeighting has some properties that I cannot undestand the purpose of them Thank you -- View this message in context: http://drools.46999.n3.nabble.com/Examination-drools-planner-example-tp4019859.html Sent from the Drools: User forum mailing list archive at Nabble.com. -- Message: 3 Date: Thu, 20 Sep 2012 09:19:05 +0200 From: Geoffrey De Smet ge0ffrey.s...@gmail.com Subject: Re: [rules-users] Examination drools-planner example To: Rules Users List rules-users@lists.jboss.org Message-ID: 505ac369.8040...@gmail.com Content-Type: text/plain; charset=us-ascii An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120920/e77b5eff/attachment-0001.html -- Message: 4 Date: Thu, 20 Sep 2012 09:23:07 +0200 From: Geoffrey De Smet ge0ffrey.s...@gmail.com Subject: Re: [rules-users] Planner Planning Entity difficulty comparator Vs difficulty weight factory To: Rules Users List rules-users@lists.jboss.org Message-ID: 505ac45b.9080...@gmail.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed [I locally answered this question last time already, but it looks like my mail never reached the mailing list due to a local misconfiguration at the time] Op 20-09-12 01:49, Ricardo schreef: when to use Planner Planning Entity difficulty comparator and difficulty weight factory? is any guidelines? Use a difficulty comparator if you can: it's the easy variant. A difficulty weight factory is needed only if you need the entire Solution (not just the entity) to calculate the difficulty of a given entity. In the examples, look for *DifficultyComparator and *DifficultyWeightFactory. - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/Planner-Planning-Entity-difficulty-comparator-Vs-difficulty-weight-factory-tp4019858.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Message: 5 Date: Thu, 20 Sep 2012 00:23:56 -0700 (PDT) From: ge0ffrey ge0ffrey.s...@gmail.com Subject: Re: [rules-users] Planner Planning Entity difficulty comparator Vs difficulty weight factory To: rules-users@lists.jboss.org Message-ID: 1348125836746-4019861.p
[rules-users] Classcast exception in Drools ant task
Hi All, I am trying to build a sample drools project using ant and getting the below error. I am using drools-distribution-5.4.0.Final release jars in my project. Unable to get this issue resolved as not sure what really went wrong. RuleBaseTask failed: Unable to load dialect 'org.drools.rule.builder.dialect.mvel.MVELDialectConfiguration:mvel:org.drools.rule.builder.dialect.mvel.MVELDialectConfiguration' at org.drools.contrib.DroolsCompilerAntTask.execute(DroolsCompilerAntTask.java:159) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:357) at org.apache.tools.ant.Target.performTasks(Target.java:385) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) at org.apache.tools.ant.Project.executeTarget(Project.java:1307) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:33) at org.apache.tools.ant.Project.executeTargets(Project.java:1191) at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:423) at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:137) Caused by: org.drools.RuntimeDroolsException: Unable to load dialect 'org.drools.rule.builder.dialect.mvel.MVELDialectConfiguration:mvel:org.drools.rule.builder.dialect.mvel.MVELDialectConfiguration' at org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:313) at org.drools.compiler.PackageBuilderConfiguration.buildDialectConfigurationMap(PackageBuilderConfiguration.java:298) at org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:187) at org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:140) at org.drools.contrib.DroolsCompilerAntTask.getPackageBuilder(DroolsCompilerAntTask.java:556) at org.drools.contrib.DroolsCompilerAntTask.createWithPackageBuilder(DroolsCompilerAntTask.java:266) at org.drools.contrib.DroolsCompilerAntTask.execute(DroolsCompilerAntTask.java:156) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:357) at org.apache.tools.ant.Target.performTasks(Target.java:385) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) at org.apache.tools.ant.Project.executeTargets(Project.java:1189) ... 2 more Caused by: java.lang.ClassCastException: org.drools.rule.builder.dialect.mvel.MVELDialectConfiguration at org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:308) at org.drools.compiler.PackageBuilderConfiguration.buildDialectConfigurationMap(PackageBuilderConfiguration.java:298) at org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:189) at org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:142) at org.drools.contrib.DroolsCompilerAntTask.getPackageBuilder(DroolsCompilerAntTask.java:558) at org.drools.contrib.DroolsCompilerAntTask.createWithPackageBuilder(DroolsCompilerAntTask.java:266) at org.drools.contrib.DroolsCompilerAntTask.execute(DroolsCompilerAntTask.java:156) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at