Re: [rules-users] classnotfound\classdefnotfound
Same here on JOnAS 5 an Drools 5.0.1, embedded in a OSGi bundle. I found messages from Edson Tirelli in the mailing-list, who the same issue and found a solution... Edson are you here ? :) Le samedi 04 juillet 2009 à 18:23 -0700, Wishing Carebear a écrit : > Hello: > I have the drools5 embedded in an ear. When running aginst JBoss 5 > gets the following classnotfound exception but it works okay with > websphere and pramati application server. Wondering if someone could > throw some pointers. > > Please note that drools-compiler, drools-core etc are all in the ear > and added to the manifest. > > Thanks, > cabear > > java.lang.NoClassDefFoundError: > org/drools/base/extractors/BaseObjectClassFieldReader > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:621) > at org.drools.base.ClassFieldAccessorCache > $ByteArrayClassLoader.defineClass(ClassFieldAccessorCache.java:367) > at > org.drools.base.ClassFieldAccessorFactory.getClassFieldReader(ClassFieldAccessorFactory.java:135) > at org.drools.base.ClassFieldAccessorCache > $CacheEntry.getReadAccessor(ClassFieldAccessorCache.java:315) > at > org.drools.base.ClassFieldAccessorCache.getReadAcessor(ClassFieldAccessorCache.java:245) > at > org.drools.base.ClassFieldAccessorStore.wire(ClassFieldAccessorStore.java:379) > at > org.drools.base.ClassFieldAccessorStore.getReader(ClassFieldAccessorStore.java:97) > at > org.drools.base.ClassFieldAccessorStore.getReader(ClassFieldAccessorStore.java:74) > at > org.drools.rule.builder.PatternBuilder.getFieldReadAccessor(PatternBuilder.java:1031) > at > org.drools.rule.builder.PatternBuilder.build(PatternBuilder.java:560) > at > org.drools.rule.builder.PatternBuilder.buildConstraint(PatternBuilder.java:235) > at > org.drools.rule.builder.PatternBuilder.build(PatternBuilder.java:196) > at > org.drools.rule.builder.PatternBuilder.build(PatternBuilder.java:104) > at > org.drools.rule.builder.GroupElementBuilder.build(GroupElementBuilder.java:69) > at org.drools.rule.builder.RuleBuilder.build(RuleBuilder.java:68) > at > org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:1159) > at > org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:649) > at > org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:290) > at > org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:488) > ___ > 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] classLoader issue...
Thanks for your answer ! My configuration seems correct to me, I have all new jars in the classpath (the ones indicated in the file README-DEPENDENCIES.txt at the SVN trunk). I checked them all looking after another BaseObjectClassFieldReader class, but only drools-core contains it. By the way, rules are well compiled and executed, this issue only happens when I put constraints on fields. So I think if drools-core was not in the classpath, nothing would work at all... Le mercredi 01 juillet 2009 à 08:46 -0400, Edson Tirelli a écrit : > >It seems to me that the problem is not with the classloader of your > classes, but the classpath of the drools jars. Are you sure you > updated and have all the required new jars in your classpath? Drools 5 > has a few new jars, like drools-api, that need to be available. Also, > check if there are any older jar still in the classpath that might be > clashing with the new jars. > >[]s > Edson > > 2009/7/1 Julien Nicoulaud > Hi, I'm migrating my system from Drools 4.0.7 to Drools 5.1.0. > Now when I try to compile rules that check fact fields, I get > the > following exception: > >ERROR: EventDispatcher: Error during dispatch. >(java.lang.NoClassDefFoundError: >org/drools/base/extractors/BaseObjectClassFieldReader) >java.lang.NoClassDefFoundError: >org/drools/base/extractors/BaseObjectClassFieldReader > >( http://paste2.org/p/296380 ) > > > It seems the classloaders I pass to the configurations are not > taken in > account... I get exactly the same error if I do not specify > the > classloaders. Here is the code: >KnowledgeBuilderConfiguration kBuilderCfg = > > > KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration(null,classLoader); >KnowledgeBuilder knowledgeBuilder = > > KnowledgeBuilderFactory.newKnowledgeBuilder(kBuilderCfg); > >KnowledgeBaseConfiguration kbaseConfig = > > > KnowledgeBaseFactory.newKnowledgeBaseConfiguration(null,multiBundleClassLoader); >kbaseConfig.setOption(EventProcessingOption.STREAM); >knowledgeBase = >KnowledgeBaseFactory.newKnowledgeBase(kbaseConfig); > > On Drools 4, we did exactly the same with PackageBuilder > instead of > KnowledgeBuilder and RuleBase for KnowledgeBase. So the > classloaders I > pass are the good ones... Is there some trick ? > > Thanks for any help ! > > ___ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > > > > -- > Edson Tirelli > JBoss Drools Core Development > JBoss by Red Hat @ www.jboss.com > ___ > 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] classLoader issue...
Hi, I'm migrating my system from Drools 4.0.7 to Drools 5.1.0. Now when I try to compile rules that check fact fields, I get the following exception: ERROR: EventDispatcher: Error during dispatch. (java.lang.NoClassDefFoundError: org/drools/base/extractors/BaseObjectClassFieldReader) java.lang.NoClassDefFoundError: org/drools/base/extractors/BaseObjectClassFieldReader ( http://paste2.org/p/296380 ) It seems the classloaders I pass to the configurations are not taken in account... I get exactly the same error if I do not specify the classloaders. Here is the code: KnowledgeBuilderConfiguration kBuilderCfg = KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration(null,classLoader); KnowledgeBuilder knowledgeBuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(kBuilderCfg); KnowledgeBaseConfiguration kbaseConfig = KnowledgeBaseFactory.newKnowledgeBaseConfiguration(null,multiBundleClassLoader); kbaseConfig.setOption(EventProcessingOption.STREAM); knowledgeBase = KnowledgeBaseFactory.newKnowledgeBase(kbaseConfig); On Drools 4, we did exactly the same with PackageBuilder instead of KnowledgeBuilder and RuleBase for KnowledgeBase. So the classloaders I pass are the good ones... Is there some trick ? Thanks for any help ! ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] RuleBase.newStatefulSession() and EventProcessingOption
Hi, I am trying to upgrade a system from Drools 4.0.7 to Drools 5.0.1 to use Drools Fusion temporal operators. With used to start our rule engine this way: RuleBase ruleBase = RuleBaseFactory.newRuleBase(new RuleBaseConfiguration(ourClassloader)); WorkingMemory workingMemory = ruleBase.newStatefulSession(); Now this seems deprecated reading the Drools fusion documentation... Should I give up RuleBase for KnowledgeBase to be able to start the rule engine in "Stream" event processing mode ? Thanks for your help ! Julien Nicoulaud OW2 Consortium ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Get statistics of the rule engine
Hi, for a frontend I am developing, I would like to show statistics about the rule engine: things like uptime, memory used, current number of facts, and the running rule packages: how many times a rule was fired and so on... I am using Drools 4. Do you know if there a way to get this kind of statistics ? By the way, thank you all, I learned a lot following this list :) Julien Nicoulaud Bull SAS ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] rules conversion to Flex
For client-server communications in a flex application, take a look at GraniteDS. Le lundi 22 juin 2009 à 10:04 -0500, Brian Towles a écrit : > Howdy all > > I am trying to see if there is a project or product out there that > will do a conversion of rules to a flex based front end. This is a > only sometimes connected project and what I am looking for is > something that is similar to BlazeDS (allowing database interaction on > a flex UI with a Java based back in with disconnected storage and > "syncing") > > I found one project/company talking about it > (http://www.integratedsemantics.com/index.html > ) but there is no more information then beyond the blurb on the main > page. > > Any hints or pointers? > > Thanks > -=Brian > > -- > Brian Towles > Application Architect > Technology Consortium, LLC > btow...@tech-consortium.com > tel: 512.415.8105 > > > ___ > 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